- 博客(11)
- 收藏
- 关注
原创 realtime library: struct sigevent introduce
struct sigevent:This element specifies how the calling process is notified once the operation terminates. If the `sigev_notify element is `SIGEV_NONE, no notification is sent. If it is`SIGEV_SIGNAL
2005-11-18 15:30:00 1195
原创 PHP5的哈希函数
static inline ulong zend_inline_hash_func(char *arKey, uint nKeyLength){ register ulong hash = 5381; /* variant with the hash unrolled eight times */ for (; nKeyLength >= 8; nKeyLen
2005-03-21 22:12:00 1121 1
原创 RH7.2利用GRUB启动NTFS分区
# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You do not have a /boot partition. This means that# all kernel and ini
2005-02-20 09:41:00 1612
原创 A* 算法实现
char g[24][81] = {{"oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo"},{"o o o o"},{"o o
2005-02-19 17:40:00 1028
原创 简单的trace函数
#include #include #include #include #include #define __a2x(ch) (((ch) & 15) + ((ch) > 9? 9: 0))#define __x2a(n) ((n & 15) + (n > 9? 55: 48))#define __print_xdigital__(buffer, r, l) /do
2005-01-18 20:37:00 1528 1
原创 摘自PHP的HASH算法实现
/* * 头文件 * 说明:此实现不保存对象,只保存对象的引用 */#ifndef _HASH_H#define _HASH_H#ifdef __cplusplusextern "C" {#endiftypedef struct tagHASHBUCKET HASHBUCKET, *LPHASHBUCKET;typedef struct tagHASHTABLE HASHTABLE, *LPH
2005-01-18 20:26:00 1984 4
原创 split实现
/* * strtok的替代函数 * int * split(int argc, char *argv[], char *string, char *delimiter) * argc - 最大分割token数 * argv - 保存token地址 * string - 要分割成token的字符串 * delimiter - 分界符,NULL表示默认空白字符 * 返回值:实际的token数,这个数
2005-01-18 19:53:00 855
原创 base64算法实现
intbase64_encode(unsigned char *out, unsigned char *in, int size){ register int position = 0; register unsigned char *dst = out, *src = in; in += size; while (src { switch (po
2005-01-18 15:20:00 966
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人