随笔分类 - C/C++
摘要:int GetValue( char* strInValue,char* strOutValue ){ if (NULL == strInValue || NULL == strOutValue) { return -1; } int result; sscanf(strInValue, "%x",
阅读全文
摘要:1. 变量一出生,它就该有值。2. 如果返回一个指针,则必须在注释里说清楚要不要在外部销毁以及该如何销毁3. 如果参数是指针的指针,暗示内存在函数内分配,除非另行说明,否则都由调用方负责释放4. size_t:Alias of one of the fundamental unsigned inte...
阅读全文