Skip to content

Instantly share code, notes, and snippets.

View ElectroLund's full-sized avatar

Rob ElectroLund

View GitHub Profile
@Morse-Code
Morse-Code / removeNonAlphaNum.c
Created April 4, 2013 12:41
Remove non-alphanumeric characters from a C string.
void stringRemoveNonAlphaNum(char *str)
{
unsigned long i = 0;
unsigned long j = 0;
char c;
while ((c = str[i++]) != '\0')
{
if (isalnum(c))
{