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

linux c mkdir´´½¨µÝ¹éĿ¼

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define err(msg) perror(msg)
static void mkdirs(const char *dir)
{
        char tmp[1024];
        char *p;
        if (strlen(dir) == 0 || dir == NULL) {
                printf("strlen(dir) is 0 or dir is NULL.\n");
                return;
        }
        memset(tmp, 0, sizeof(tmp));
        strncpy(tmp, dir, strlen(dir));
        if (tmp[0] == '/' && tmp[1]== '/')
                p = strchr(tmp + 2, '/');
        else
                p = strchr(tmp, '/');
        if (p) {
                *p = '\0';
                mkdir(tmp,0777);
  chdir(tmp);
        } else {
                mkdir(tmp,0777);
                chdir(tmp);
                return;
        }
        mkdirs(p + 1);
}
int main(void)
{
       


Ïà¹ØÎĵµ£º

ÓÃCдµÄ3DÃÔ¹¬

          Boss˵£¬Òª¿´OpenGL£¬¿´ÁË¿ìÒ»¸öÔ£¬×ÜËã³öÁ˸öÏñÑùµÄ¶«Î÷£¬ÓÃCдÁ˸ö3DÃÔ¹¬£¬
ËäȻֻÓÐ350ÐÐ
       ´úÂ룬²»¹ý±ßѧ±ßд£¬×ã×ãдÁËÒ»ÖÜʱ¼ä£¬»¹ÊÇСÓгɾ͸е쬻î»î»î£¡
         &n ......

LinuxÓëWindowsϵͳµÄ²îÒì


1)  ÎļþÃüÃûµÄ¹æÔò²»Í¬
WindowsϵͳÏÂÎļþÃû²»Çø·Ö´óСд£¬ÎļþÃûÖв»Äܰüº¬[/£¬\£¬<£¬>£¬|£¬”£¬:£¬*£¬?]µÈ×Ö·û¡£UnixϵͳÏÂÎļþÃûÇø·Ö´óСд£¬ÎļþÃûÖпÉÒÔʹÓÃתÒå·û[\]À´´¦ÀíÌØÊâ×Ö·û[\£¬<£¬>£¬|£¬”£¬:£¬*£¬?]£¬Î¨Ò»²»ÔÊÐíµÄÊDZíʾ·¾¶µÄ×Ö·û[/]¡£
2)  Îı¾ÎļþµÄ»»ÐÐ ......

²é¿´ºÍÆô¶¯linuxµÄ·þÎñ£¬È磺nfs

Æô¶¯94,95µÄnfs·þÎñ
·½·¨Ò»:µ½/etc/init.d/ÖÐÔËÐÐ ./nfs start
       µ½/etc/rc.d/rc3.d²ì¿´¿ØÖÆÌ¨·þÎñ(K×Öĸ¿ªÍ·µÄ»°ÎªÎ´Æô¶¯,SΪÆô¶¯,Ö±½Ó¸ÄÃû×ÖÒ²¿ÉÒÔ½«·þÎñÆô¶¯)
·½·¨¶þ:´òÃüÁîsetup,½«System serviceÖеÄnfs´ò¹´,È»ºóÍ˳ö ......

4.1. Introduction to Linux Routing


4.1. Introduction to Linux Routing
The design of IP routing allows for very simple route definitions for small networks, while not hindering the flexibility of routing in complex environments. A key concept in IP routing is the ability to define what addresses are locally reachable as oppose ......

Linux²Ù×÷ϵͳÄÚºËARPµÄÉè¼ÆÊµÏÖ¸ÅÊö

ARP (Address Resolution Protocol) ÊÇÓÃÀ´°ÑIPµØÖ·×ª»¯³É»úÆ÷µÄÍø¿¨ÎïÀíµØÖ·£¨Ó²¼þµØÖ·£©¡£µ±Ò»Ì¨»úÆ÷ÒªÏòÁíÍâһ̨ÎïÀíÉÏÏàÁ¬µÄ»úÆ÷·¢ËÍIP°üµÄʱºò£¬ËüÒªÏȼì²éÒ»ÏÂ×Ô¼ºµÄARP»º´æ£¬ÊÔͼÕÒµ½¶Ô·½µÄÓ²¼þµØÖ·£¬Èç¹ûÕÒ²»µ½µÄ»°£¬°ÑÒª·¢Ë͵ÄIP°ü·ÅÈëµÈ´ý¶ÓÁÐÖУ¬½Ó×Å·¢³öÒ»¸öARPÇëÇ󡣵ȵ½ÊÕµ½ARPÓ¦´ðµÄʱºò£¬¹¹ÔìºÃÔ­À´ÕýÔڵȴ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ