Dev Tool Tips/C/C++2009. 12. 1. 11:20
여러가지 방법을 생각할 수 있을 것이다.

방법 1. /proc/scsi/usb-storage 아래에 있는 파일의 수를 센다.

방법 2. 다음의 시스템 함수를 사용한다.
FILE *setmntent(const char *filename, const char *type);

struct mntent *getmntent_r(FILE *fp, struct mntent *mntbuf,
char *buf, int buflen);

Posted by young.h.rhie