摘要:
struct __log_level;typedef struct __log_level log_level_t;=======================struct __log_level {/* member variables */char name[LOG_LEVEL_NAME_LEN];int value;/* Convenient variables for fast access */charvalue_str[INT_STR_LEN];charself_str[LOG_LEVEL_STR_LEN];};=======================log_level_t 阅读全文
摘要:
/* OFF is a special level that can be used to turn off logging. */log_level_t* LOG_OFF;/* SEVERE is a message level indicating a serious failure. */log_level_t* LOG_SEVERE;/* WARNING is a message level indicating a potential problem. */log_level_t* LOG_WARNING;/* CONFIG is a message level for static 阅读全文
摘要:
void * memset ( void * ptr, int value, size_t num );Fill block of memorySets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).#include <stdio.h>#include <string.h>int main (){ char str[] = "almost every programmer sho 阅读全文