Skip to content

Instantly share code, notes, and snippets.

@klmr
Created June 23, 2012 17:13
Show Gist options
  • Save klmr/2979069 to your computer and use it in GitHub Desktop.
Save klmr/2979069 to your computer and use it in GitHub Desktop.
strlen test
#include <string.h>
#include <stdio.h>
int main(void) {
char * str = "hello, world";
for (int i = 0; i < strlen(str); ++i
printf("%c ", str[i]);
printf("\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment