• C 표준 함수
  • Zappy (IP: *.51.113.3)
    조회 수: 9142, 2006-10-25 11:24:39(2006-10-25)
  • [stdio.h]표준입출력 함수

    clearerr

    fclose

    fcloseall

    fdopen

    feof

    ferror

    fflush

    fgetc

    fgetchar

    fgetpos

    fgets

    fileno

    flushall

    fopen

    fprintf

    fputc

    fputchar

    fputs

    fread

    freopen

    fscanf

    fseek

    fsetpos

    _fsopen

    _fstrncpy

    ftell

    fwrite

    getc

    getchar

    gets

    getw

    _pclose

    perror

    _popen

    printf

    putc

    putchar

    puts

    putw

    remove

    rename

    rewind

    rmtmp

    scanf

    setbuf

    setvbuf

    spawnl

    spawnle

    spawnlp

    spawnlpe

    spawnv

    spawnve

    spawnvp

    spawnvpe

    sprintf

    sscanf

    strerror

    _strerror

    strncpy

    tempnam

    tmpfile

    tmpnam

    ungetc

    unlink

    vfprintf

    vfscanf

    vprintf

    vscanf

    vsprintf

    vsscanf

     

     

     

    [ctype.h]문자 평가 함수

    isalnum

    isalpha

    isascii

    iscntrl

    isdigit

    isgraph

    islower

    isprint

    ispunct

    isspace

    isupper

    isxdigit

    toascii

    _tolower

    tolower

    _toupper

    toupper

     

     

     

     

     

     

     

     

    [string.h]문자열 함수

    strcat

    strchr

    strcmp

    strcmpi

    strcoll

    strcpy

    strdup

    stricmp

    strlen

    strlwr

    strncat

    strncmp

    strncmpi

    strncpy

    strnicmp

    strnset

    strpbrk

    setmem

    strrchr

    stpcpy

    strrev

    strset

    strspn

    strstr

    strtok

    strupr

    strxfrm

     

     

     

     

     

     

    [stdlib.h]문자열 및 수치변환 함수

    atof

    atoi

    atol

    calloc

    ecvt

    exit

    fcvt

    free

    ultoa

    qsort

    gcvt

    getenv

    itoa

    rand

    random

     

     

     

    [math.h]수학연산 함수

    abs

    acos

    asin

    atan

    atof

    cabs

    ceil

    cos

    cosh

    exp

    fabs

    floor

    fmod

    frexp

    hypot

    labs

    ldexp

    log

    log10

    _matherr

    modf

    poly

    pow

    pow10

    sin

    sinh

    sqrt

    tan

    tanh

     

     

     

     

    [mem.h]메모리 관리 함수

    _fmemccpy

    _fmemchr

    _fmemcmp

    _fmemcpy

    _fmemicmp

    _fmemmove

    _fmemset

    _fmovmem

    memccpy

    memchr

    memcmp

    memcpy

    memicmp

    memmove

    memset

    movedata

    movmem

    setmem

     

     

     

     

    [conio.h]텍스트 화면 처리함수

    cgets

    clreol

    clrscr

    cprintf

    cputs

    cscanf

    delline

    getch

    getche

    getpass

    gettext

    gettextinfo

    gotoxy

    highvideo

    inp

    inport

    inportb

    inpw

    insline

    kbhit

    lowvideo

    movetext

    normvideo

    outp

    outport

    outportb

    outpw

    putch

    puttext

    textattr

    textcolor

    textmode

    ungetch

    wherex

    wherey

    window

     

     

     

     

     

    [time.h]시간함수

    asctime

    clock

    ctime

    difftime

    gmtime

    localtime

    mktime

    randomize

    stime

    _strdate

    strftime

    _strtime

    time

    tzset

     

     

     

    [입출력 함수]

    구분

    입력함수

    출력함수

    파일종류

    문자 입출력

    getc()

    putc()

    순차, 랜덤파일

    fgetc()

    fputc()

    문자열 입출력

    fgets()

    fputs()

    순차파일

    서식지정 입출력

    fscanf()

    fprintf()

    순차파일

    블록 입출력

    fread()

    fwrite()

    랜덤파일

    정수 입출력

    getw()

    putw()

    랜덤파일

     

    함수이름

    관련 헤더화일

    형 식

    내 용

    _tolower

    stdlib.h

    int _tolower(c)

    int c;

    문자 c가 대문자이면 소문자로 변환

    _toupper

    ctype.h

    int _toupper(c)

    int c;

    문자 c가 소문자이면 대문자로 변환

    abort

    process.h

    stdlib.h

    void abort()

    "Abnomal Program Termination" 이라는 메시지를 프린트하고 프로그램을 중단

    abs

    math.h

    int abs(n)

    int n;

    n의 절대값을 구한다

    acos

    math.h

    double acos(x)

    double x;

    n의 cos-1(x)의 값을 구한다

    asctime

    time.h

    char* asctime(t)

    struct tm *t;

    gmtine() 또는 localtine()으로 얻어진 t 시간을 문자열인 구조체에 저장된 시간 t로 변경

    asin

    math.h

    double asin(x)

    double x;

    x의 범위가 -?/2∼?/2인 sin-1 (x) 값을 구함

    assert

    assert.h

    void assert(ep)

    int ep;

    ep 식이 거짓이면 호출한 프로세서를 끝내고, 아니면 메세지를 프린트

    atan

    math.h

    double atan(x)

    double x;

    x의 범위가 -?/2∼?/2인 tan-1 (x) 값을 구함

    atan2

    math.h

    double atan2(x)

    double x;

    x의 범위가 -?∼?인 tan-1(x) 값을 구함

    atof

    math.h

    double atof(str)

    char* str;

    문자열을 float형 수치로 변환

    atoi

    stdlib.h

    int atoi(str)

    char* str;

    문자열을 int형 수치로 변환

    atol

    stdlib.h

    long atol(str)

    char* str;

    문자열을 long형 수치로 변환

    bsearch

    search.h

    char *bsearch(k,b

    ,n,w,c)

    char *k, *b;

    usigned n,w;

    int* c();

    n원소의 정렬된 배열을 2진 검색하고 크기는 w바이트이다. b는 검색된 배열의 기준 포인터이고 k는 검색 키이며 c는 비교 함수에에 대한 포인터

    cabs

    math.h

    double cabs(z)

    struct complex z;

    복소수의 절대값을 구함

    calloc

    stdlib.h

    char* calloc(n, size)

    unsigned n;

    unsigned size;

    메모리의 영역을 할당

    ceil

    math.h

    double ceil(x)

    double x;

    x를 넘지않는 최대 정수를 구함

    clearerr

    stdio.h

    void clearerr(st)

    FILE *st;

    주어진 st에 대하여 에어 감시기와 EOF 상태 를 0으로 해제시키는 매크로(macro)

    cos

    math.h

    double cos(x)

    double x;

    cos값을 구함

    cosh

    math.h

    double cosh(x)

    double x;

    x의 cosh값을 구함

    ctime

    time.h

    char* ctime(t)

    long *t;

    time() 함수를 이용하여 t를 읽고,1970년 1월 1일 부터 경과한 초수를 판정

    ecvt

    stdlib.h

    char *ecvt(value,

    count,dec,sign)

    double value;

    int count, *dec,

    *sign;

    float형 수치를 문자열로 변환

    exp

    math.h

    double exp(x)

    double x;

    지수 함수값 ex를 구함

    math

    math.h

    double fabs(x)

    double x;

    float형 수치 x의 절대값을 구함

    fclose

    stdio.h

    int fclose(fp)

    FILE *fp;

    fp로 지정된 화일을 닫음

    fcloseall

    stdio.h

    int fcloseall()

    모든 화일을 닫음

    fcvt

    stdlib.h

    char* fcvt(value,

    count,dec,sign)

    double value;

    int count, *dec,

    *sign;

    float형 수치를 문자열로 변환

    fopen

    stdio.h

    FILE* fdopen(

    handle,type)

    int handle;

    char* type;

    open,close등으로 이미 open한 표준 입력 화일로 다시 사용할 수 있도록 포인터를 반환

    feof

    stdio.h

    int feof(fp)

    FILE *fp;

    주어진 fp의 화일의 끝에 도달했는지 조사

    ferror

    stdio.h

    int ferror(fp)

    FILE *fp;

    주어진 fp내에서의 read-write중에 에러가 발 생한 일이 있는 경우는 0이 아닌 값을 반환하 고 에러가 없으면 0을 반환

    fflush

    stdio.h

    int fflush(fp)

    FILE *fp;

    출력 버퍼에 남아 있는 내용을 지정된 화일에 써 넣는다, 처리한 후에도 화일이 열려 있다

    fgetc

    stdio.h

    int fgetc(fp)

    FILE *fp;

    현재 위치에 있는 입력 fp에서부터 단일 문자를 읽는다. 다음 문자를 읽기 위해서는 화일포인터를 1 증가시킨다

    fgetchar

    stdio.h

    int fgetchar()

    fgetc(stdin)과 같은 기능을 하며 표준 입력장치에서 1 문자를 읽어 들인다

    fgets

    stdio.h

    char* fgets( str,n,fp)

    char* str;

    int n;

    FILE *fp;

    fp입력으로부터 문자열을 읽어 str안에 저장한다. 단 개행문자 또는 최대문자수(n-1)에 도달할 때까지 입력하여 맨끝에 ''을 덧붙인다

    fmod

    math.h

    fmod(x,y)

    float형 수치 나눗셈의 나머지를 구함

    fopen

    stdio.h

    FILE *fopen(

    pathname, mode)

    char *pathname;

    chr *mode;

    지정한 화일을 지정한 모드로 연다. 처리한 후에도 화일은 열려 있다.

    fprintf

    stdio.h

    int fprintf(fp,

    format,arg1, arg2...)

    FILE *fp;

    char* format;

    지정된 변환 사양으로 각 인수의 값이 지정 되어 이미 open된 fp로서 문자열 format을 출력

    fputc

    stdio.h

    int fputc(c,fp)

    int c;

    FILE *fp;

    현재 위치에 출력 fp화일로 단일 문자 c를 출력

    fputchar

    stdio.h

    int fputchar(c)

    int c;

    fputc(c,stdout)와 같은 기능을 하며 표준 출력 장치에 단일 문자 c를 출력

    fputs

    stdio.h

    int fputs(str,fp)

    char* str;

    FILE *fp;

    이미 지정되어 열려 있는 fp화일에 str영역의 문자열을 출력하는 함수로 출력시 'n' 은 붙지 않는다

    댓글 0

    번호 제목 닉네임 조회  등록일 
    22 [레벨:18]Zappy 25176 2010-05-09
    21 Zappy 12416 2007-03-25
    20 Zappy 6069 2007-03-21
    19 Zappy 10543 2007-03-21
    18 Zappy 7955 2006-10-25
    Zappy 9142 2006-10-25
    16 Zappy 12225 2006-10-25
    15 Zappy 7916 2006-10-25
    14 Zappy 60143 2006-10-25
    13 Zappy 9221 2006-10-25
    XE Login