Qbasicnews.com

Full Version: mid$ in c
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
strlen will give you the exact length of the string, sizeof will include the null terminator.
char string[] = "Hello world!";
x = sizeof(string);

wouldn't x == sizeof(char *) ?
Pages: 1 2