摘要:        
打算学学Zebos的实现方式 先从简单的RIP 入手吧Junos:9.4R4.5 Vs Zebra简单构建了一套环境 R1---------------Zebos---------------R2代码结构如下ripdThis directory contains all the code for RIP supporting IPv4.Descriptionripd.h ripd.c Functions to initiate, stop, and destroy ripd instancesrip_api.h rip_api.c ...    阅读全文
        
            posted @ 2012-08-09 15:18
abacuspix
阅读(851)
评论(1)
推荐(0)
        
            
        
        
摘要:        
//sc_4.c included filestatic int i=10;int next(){ return(i+=1);}int last(){ return (i-=1);}int new(i)int i;{ static int j=5; return (i=j+=i);}extern int i;reset(){ return (i);}#include <stdio.h>#define PR(format,value) printf(#value"= %"#format"\t",(value))#define NL putcha    阅读全文
        
            posted @ 2012-08-09 13:14
abacuspix
阅读(203)
评论(0)
推荐(0)
        
            
        
        
摘要:        
/* Programming Style 1: Choose the Right Condition *Improve the following program fragments through reorganization */while(A) { if(B) continue; C;}do { if(!A) continue; else B; C; } while(A);if(A) if(B) if(C) D; else; else;else; if(B) if(C) E; el...    阅读全文
        
            posted @ 2012-08-09 13:07
abacuspix
阅读(189)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <stdio.h>#define PR(format,value) printf(#value"= %"#format"\t",(value))#define NL putchar('\n')#define PRINT1(f,x1) PR(f,x1), NL#define PRINT2(f,x1,x2) PR(f,x1), PRINT1(f,x2)#define PRINT3(f,x1,x2,x3) PR(f,x1), PRINT2(f,x2,x3)#define PRINT4(f,x1,x2,x3,x4)     阅读全文
        
            posted @ 2012-08-09 13:01
abacuspix
阅读(312)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <stdio.h>#define PRINT(format,x) printf("x = %"#format"\n",(x))//how to add the # ????int integer = 5;char character = '5';char *string = "5";int main(void){ PRINT(d,string); PRINT(d,character); PRINT(d,integer); PRINT(d,string); PRINT(c,character    阅读全文
        
            posted @ 2012-08-09 12:54
abacuspix
阅读(214)
评论(0)
推荐(0)
        
                    
                
        
浙公网安备 33010602011771号