Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂÍê³ÉµÄÒ»¸ö×÷Òµ³ÌÐò

Îĵµ´´½¨ÈÕÆÚ£º2010-02-18
    01    // P173: 2.±à³ÌÌâ (5)ÊäÈëÒ»¸ö×Ö·û´®£¬Í³¼ÆÓ¢ÎÄ×Öĸ¡¢¿Õ¸ñ¡¢Êý×ÖºÍÆäËû×Ö·ûµÄ¸öÊý¡£
    02   
    03    // The beginning of C program: test06-05.c.
    04   
    05    // Header files included.
    06    #include <stdio.h>
    07    #include <string.h>
    08   
    09    // Macro definition.
    10    #define MAX_SIZE 100
    11   
    12    // Main function's declaration.
    13    int  main ( void )
    14    {
    15        char   ch[MAX_SIZE];
    16        int    letter=0,  space=0,  number=0,  other=0,  i=0,  length=0;
    17        printf ( "Please input a line of characters: " );
    18        do
    19        {
    20            ch[i] = getchar();
    21            i++;
    22        } while ( ch[i-1] != '\n' );
    23        length = i-1;
    24        ch[length] = '\0';
    25        printf ( "The string length is: %d\n", strlen(ch) );
    26  &nbs


Ïà¹ØÎĵµ£º

LinuxϵÄÒ»¸ö×÷Òµ³ÌÐò

Îĵµ´´½¨Ê±¼ä£º2010-02-14
     1    // P120: 3.±à³ÌÌâ (3)
     2   
     3    // The begining of C program: test04-03.c.
     4   
     ......

linux 0.11 ÄÚºËѧϰ bitmap.c


/*
 *  linux/fs/bitmap.c
 *
 *  (C) 1991  Linus Torvalds
 */
/* bitmap.c contains the code that handles the inode and block bitmaps */
#include <string.h>
#include <linux/sched.h>
#include <linux/kernel.h> // һЩÄں˳£Óú¯ÊýµÄÔ­Ðζ¨Òå
......

linux 0.11 ÄÚºËѧϰ ioctl.c


/*
 * ioctl.c ÎļþʵÏÖÁËÊäÈë/Êä³ö¿ØÖÆÏµÍ³µ÷ÓÃioctl()£¬¸Ãº¯Êý
 * Ö÷ÒªÊǵ÷Óú¯Êýtty_ioctl()¶ÔÖն˵ÄIO½øÐпØÖÆ
 */
/*
 *  linux/fs/ioctl.c
 *
 *  (C) 1991  Linus Torvalds
 */
#include <string.h>
#include <errno.h>
#include <s ......

¹ØÓÚLinuxÏÂusb£¨vfat¸ñʽ£©¹ÒÔØÖÐÎÄÂÒÂëÎÊÌâµÄ½â¾ö

Á½ÖÖ·½Ê½£º
Ò»ÖÖÊÇͨ¹ýÖÕ¶ËÊÖ¶¯¹ÒÔØ¼ÓÉϲÎÊý: -o iocharset=utf8
                  È磺# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
µÚ¶þÖÖÊÇͨ¹ý¼ÓÈëÄÚºËÖ§³ÖÔÚFile systems  --->  DOS/FAT/NT Filesystems  --->ÖÐÓÐÁ½ÏîÐÞ¸ÄΪ£ ......

linuxÏÂÅäÖþ²Ì¬Â·ÓÉ

Internet------(eth1)router1(eth2)------(eth1)router2(eth0)------(eth0)router3(eth1)------(eth0)pc
ÉÏÃæ¾ÍÊÇÎÒµÄÍøÂçÍØÆË½á¹¹£¬ÆäÖзÓÉÆ÷1ÊÇÓÃÀ´Á¬½ÓÍâ²¿ÍøÂçµÄһ̨linux»úÆ÷£¬Í¼ÖÐËùÓзÓÉÆ÷¶¼ÊÇÆÕͨµÄpc»ú£¬ÕâЩpc¶¼°²×°ÁËubuntu×ÀÃæÏµÍ³£¬³ýÁË×îÓұߵÄpc£¬ÆäÓàµÄpc¶¼×°ÁË3ÕÅÍø¿¨£¨ÆäÖÐÒ»Õű¸Óã©¡£
ÓÉÓÚDebianϵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ