![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码交流
freedom1013
embedded linux
展开
-
dec2hex.c
/***DESCRIPTION:convert deciaml to hex**Author:liy**DATE:8-12-2006*/#include void dec2hex(int );int main(){ int num; printf("Input a decimal number:"); scanf("%d",&num); dec2hex(num); return 0;}原创 2006-10-03 14:49:00 · 2892 阅读 · 1 评论 -
apue(1-3)
/* * DESCRPTION: standard IO simulate system calls -- read,write; * DATE:8-23-2006*/#include "apue.h"int main(void){ int c; while((c = getc(stdin)) != EOF) if(putc(c, stdout) == EOF) err_sys("o原创 2006-10-03 21:21:00 · 743 阅读 · 0 评论 -
array_insert.c
/* * -insert a value to array; * author: liy * date: 9-14-2006*/#include #include #define SIZE 10int main(void){ int a[SIZE]; /* before insert value */ int b[SIZE+1]; /* after insert value */ int原创 2006-10-05 22:53:00 · 861 阅读 · 0 评论 -
parity.c(将一个value进行寄偶校验)
/** FUNCTION: 对值进行寄偶校验;* PARAM: value -- 对value 进行寄偶校验; n_bit -- value有多少位.or value位的个数;* RETURN: 0 : 1的位数为偶数个; >0 :1的位数不为偶数个 ;* DATE:8-13-2006;*/int even_p原创 2006-10-07 01:44:00 · 1254 阅读 · 0 评论 -
C51源代码--用按键控制led走马灯实例
/****************************************************************************** * * Description : 4 key control led flow * key1 -- start * key2 -- stop * key3 -- up->down * key4 -- down-原创 2006-12-03 23:45:00 · 4591 阅读 · 0 评论