This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() { | |
char *s1 = "I Used to BE An UPPER CASE StrinG\n"; | |
/* alloc memory and copy the string (to preserve the original reference */ | |
char *s2 = strdup(s1); | |
unsigned i; | |
for (i = 0; i < strlen(s2); i++) |