'gethostid'에 해당되는 글 1건

  1. 2012.04.16 gethostid 함수

gethostid 함수

programming/C_C++ 2012. 4. 16. 16:47
반응형

#include <stdio.h>
#include <unistd.h>

int main(int argc, char *argv[])
{

    long id;

    id = gethostid();

    printf("current hostid is: %x\n",id);

}

 

테스트 결과

 

current hostid is: 8336256d

 

 

반응형
Posted by 공간사랑
,