| 여러장의 이미지 간단히 합치기 | 움직이는GIF만들기 | 썸네일 쉽게 만들기
BLOG main image
분류 전체보기 (60)
I am (0)
Today (1)
개발자이야기 (10)
나만의 유용한정보 (4)
서버관련 (26)
지름신 (2)
사진/여행 (1)
끄적끄적 (4)
골프 (8)
주식 (2)

musica gratis
musica gratis
ssh 접속시 rsa 인증을 통해서..
컴ⓣing의 주절거림 in textcube
«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
141,420 Visitors up to today!
Today 69 hit, Yesterday 95 hit
daisy rss
티스토리 가입하기!
2008/01/28 20:45

php의 strpos와는 좀 틀리지만.,

문제열이 포함되어 있는지의 여부는 아래의 예제로 충분할듯.


#include <stdio.h>
#include <string.h>

main()
{
  char string[]="string to search";
  char   test[]="sear";

/* strstr returns a pointer into 'string'
* if 'test' is found' if not found, NULL
* is returned. */

  if (strstr(string, test)) puts("String found");

}



Trackback Address :: http://blog.bbom.org/trackback/1 관련글 쓰기
Name
Password
Homepage
Secret