LINUX C程序开发每日一题——指针
实现一个链表,完成链表的插入,查找,删除
typedef struct _FIFO_M{
void *pdata;
struct _FIFO_M *pNext;
}FIFO_M,* pFIFO_M;
typedef struct _FIFO{
pFIFO_M head;
pFIFO_M tail;
pFIFO_M pos;
int mcount;//节点个数
int max_count;//节点最大个数。
}FIFO,* pFIFO;
FIFO g_fifo;
int Fifo_Add(pFIFO mfifo,void * pdata);/*向队列中压入一数据,添加到队列头部*/
int Fifo_Push(pFIFO mfifo,void * pdata);/*向队列中压入一数据,添加到队列尾部*/
void * Fifo_Pull(pFIFO mfifo); /*将队列头部成员出列*/
相关文档:
进入/boot/grub
修改grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, ......
(1)查看时钟中断:
$ cat /proc/interrupts
CPU0
0: 1380471 IO-APIC-edge timer
1: 3626 IO-APIC-edge i8 ......
在网上找到的一个程序
[c]
#include <stdio.h>
#include <sys/types.h>
#include <regex.h>
/* 取子串的函数 */
static char* substr(const char*str,unsigned start, unsigned end)
{
unsigned n = end - start;
static char stbuf[256]; ......
拿到这本电子书看了林博士写的前言,讲述的什么是编程老手与编程高手,此时我才知我只能称得上是业余编程爱好者而已,林博士对编程老手与编程高手做了如下的定义:
定义 1:能长期稳定地编写出高质量程序的程序员称为编程老手。
定义 2:能长期稳定地编写出高难度、高质量程序的程序员称为编程高手。 ......