컴퓨터 프로그래밍/안드로이드
Eclipse + Android NDK + CDT !! - NDK에는 strlwr가 없다
orange code
2011. 10. 6. 00:12
해결방법
1. C언어를 쓴다면 -> 직접 구현한다.
2. C++언어를 쓴다면 -> STL를 이용한다.
1. C언어를 쓴다면 -> 직접 구현한다.
char* strlwr(char* s)
{
// 셀프서비스
}
2. C++언어를 쓴다면 -> STL를 이용한다.
#include <string>
#include <cctype>
#include <algorithm>
std::string s = "~~~";
std::transform(s.begin(), s.end(), s.begin(), std::tolower);