Contents

Views 12226 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
#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);
    }
}


?

List of Articles
No. Category Subject Author Date Views
321 Develop [unix] 로그파일 정리 쉘스크립트 hooni 2014.02.19 10886
320 Develop [unix] Java 애플릿용 HTML 자동 생성 hooni 2014.02.19 8274
319 Develop [unix] 유닉스 명령에 메타문자 사용 hooni 2014.02.19 11303
318 Database [sql] 한눈에 보이는 Join file hooni 2014.02.19 8563
317 Develop 페이팔에서 돈 찾기 (Paypal withdraw) file hooni 2014.02.20 11487
316 Develop SVN 명령어 (SVN command) hooni 2014.02.28 12232
315 Develop SVN 초간단 사용하기 hooni 2014.02.28 7684
314 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4603
313 Develop [ios] URL Scheme 이용하여 앱 설치 확인 hooni 2014.03.10 4415
312 System/OS [linux] 쉘스크립트 expr hooni 2014.03.11 15724
311 System/OS [linux] awk 명령어 hooni 2014.03.11 5051
310 System/OS [linux] split 명령어 hooni 2014.03.11 4399
Board Pagination Prev 1 ... 67 68 69 70 71 72 73 74 75 76 ... 98 Next
/ 98