说我有这个功能:
int epic(int);
我知道这些命名约定,对吗?是否存在其他非常常见的?
long epicl (long);
long long epicll (long long);
unsigned int epicu (unsigned int);
unsigned long epicul (unsigned long);
unsigned long long epicull (unsigned long long);
double fepic (double);
float fepicf (float);
最佳答案
有时,如果返回类型与参数类型不同,则可以使用前缀来表明这一点。例如,考虑以下内容(来自C99):
double round(double x);
float roundf(float x);
long double roundl(long double x);
long int lround(double x);
long int lroundf(float x);
long int lroundl(long double x);
long long int llround(double x);
long long int llroundf(float x);
long long int llroundl(long double x);
关于c - 数字函数的C命名约定?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9803368/