Last active
December 12, 2015 12:09
-
-
Save sooop/4770012 to your computer and use it in GitHub Desktop.
strupr 함수는 윈도용 c 컴파일러에만 포함되어 있음. mac 용으로 대체 함수 추가.
This file contains 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
/* strupr : make uppercase string. exist in win32 c includes but not in mac's one */ | |
#include <ctype.h> // for toupper() | |
void strupr(char *origin) { while(*origin != '\0') *origin = toupper(*origin++); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
이렇게 한 줄로 쓸 수도 있다.