Contents

조회 수 12180 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
#include<stdio.h>
#include<string.h>

int main(){
    char string[] = "abc de,fghi\tjklmn\nopqrstuv";
    char *token;
    
    /* 공백,콤마,탭,개행 이 있으면 단어구분 */
    char delimit[] = " ,\t\n";

    token = strtok(string, delimit);

    while(token!=NULL){
        /* 출력 */
        printf("%s\n", token);

        /* 다음단어 */
        token = strtok(NULL, delimit);
    }
}


?

  1. [c] 문자열 처리(문자열 자르기)

    Date2003.04.23 CategoryDevelop Byhooni Views8637
    Read More
  2. [c] 문자열 처리 관련 함수들 설명

    Date2003.04.23 CategoryDevelop Byhooni Views7997
    Read More
  3. [c] 문자열 정렬 함수 qsort()

    Date2003.04.23 CategoryDevelop Byhooni Views8232
    Read More
  4. [c] 문자열 자르는 함수(strtok) 예제

    Date2013.04.23 CategoryDevelop Byhooni Views12180
    Read More
  5. [c] 문자열 라이브러리 최신버전

    Date2003.04.23 CategoryDevelop Byhooni Views7188
    Read More
  6. [c] 문자열 뒤집기 초간단 샘플 코드 ㅎㅎ

    Date2013.04.23 CategoryDevelop Byhooni Views7119
    Read More
  7. [c] 문자열 뒤집기 (문자열 거꾸로 출력하는 간단소스)

    Date2003.04.23 CategoryDevelop Byhooni Views9984
    Read More
  8. [c] 문자열 str_shift 예제..

    Date2013.04.23 CategoryDevelop Byhooni Views6843
    Read More
  9. [c] 무선 Radius Server 자료..

    Date2013.04.23 CategoryDevelop Byhooni Views7265
    Read More
  10. [c] 메시지큐(Message Queue) 설명.. (joinc)

    Date2013.04.23 CategoryDevelop Byhooni Views14279
    Read More
  11. [c] 메세지 프로그램 (Server - Agent - Client)

    Date2013.04.23 CategoryDevelop Byhooni Views6459
    Read More
  12. [c] 맵서치인 듯(옛날 컴에서 찾은 자료)

    Date2013.04.23 CategoryDevelop Byhooni Views6904
    Read More
Board Pagination Prev 1 ... 67 68 69 70 71 72 73 74 75 76 ... 98 Next
/ 98