- 论坛徽章:
- 0
|
菜鸟问题求教
...表示函数的参数个数不定,但不一定只是environment *, void *, void *这些类型。
C中有一类的像这种参数个数不定的函数,最典型的如:
int _Cdecl printf (const char *format, ...);
int _Cdecl scanf (const char *format, ...);
int _Cdecl sprintf (char *buffer, const char *format, ...);
int _Cdecl sscanf (const char *buffer, const char *format, ...);
int _Cdecl fscanf (FILE *stream, const char *format, ...);
int _Cdecl fprintf (FILE *stream, const char *format, ...);
int _Cdecl execl(char *path, char *arg0, ...);
int _Cdecl execle(char *path, char *arg0, ...);
int _Cdecl execlp(char *path, char *arg0, ...);
int _Cdecl execlpe(char *path, char *arg0, ...);
int _Cdecl spawnl(int mode, char *path, char *arg0, ...);
int _Cdecl spawnle(int mode, char *path, char *arg0, ...);
int _Cdecl spawnlp(int mode, char *path, char *arg0, ...);
int _Cdecl spawnlpe(int mode, char *path, char *arg0, ...);
可以找相关的书了解一下,我对这方面也不是很熟。 |
|