摘要:
``` import sys import base64 import os import re s1 = '"=?UTF-8?B?56mG6Zi/5rWpKOWnnOW8iyk=?=" , "=?UTF-8?B?56mG6Zi/5rWpKOWnnOW8iyk=?=" ' s2 = '"=?UTF-8?B?56mG6Zi/5rWpKOWnnOW8iyk=?=" ' s3 = "=?GBK?B?w... 阅读全文
摘要:
``` #cat snprintf.c #include #include #include struct student{ int age; char *name; }; int main(void) { /*t1 结构体指针*/ struct student *t1; t1 = malloc(sizeof(struct student)); t1->age = 11;... 阅读全文
摘要:
定义结构体class ,class结构体中包含student 结构体指针 如何访问,赋值给class student? ./struct_find class num:1, name:class1 student name:jack, age:22 `` 阅读全文
摘要:
``` #cat lstat.c #include #include #include #include #include #define MINORBITS 20 #define MINORMASK ((1U > MINORBITS)) #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) int main(vo... 阅读全文
摘要:
``` cat bb.c include include include include include define KEYVALLEN 100 / Delete left side blank / char l_trim(char szOutput, const char szInput) { 阅读全文
摘要:
``` #cat aa.c #include #include #include #include #define DEBUG #ifdef DEBUG static int log_debug(const char *format, ...) { va_list argPtr; int count; va_start(argPtr, format); ... 阅读全文
摘要:
``` cat aa.c / ringbuf .c / include include define NMAX 8 int iput = 0; / 环形缓冲区的当前放入位置 / int iget = 0; / 缓冲区的当前取出位置 / int n = 0; / 环形缓冲区中的元素总数量 / doub 阅读全文
摘要:
ref from : http://blog.csdn.net/zhuxiaoping54532/article/details/49680537 main 在驱动程序里, ioctl() 函数上传送的变量 cmd 是应用程序用于区别设备驱动程序请求处理内容的值。cmd除了可区别数字外,还包含有助于 阅读全文