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

C¿âº¯ÊýÖÐ×Ö·û´®´¦Àíº¯Êý¼¯ºÏ

bcmp
Ô­ÐÍ£ºextern int bcmp(const void *s1, const void *s2, int n);
Ó÷¨£º#include <string.h>
¹¦ÄÜ£º±È½Ï×Ö·û´®s1ºÍs2µÄÇ°n¸ö×Ö½ÚÊÇ·ñÏàµÈ
˵Ã÷£ºÈç¹ûs1=s2»òn=0Ôò·µ»ØÁ㣬·ñÔò·µ»Ø·ÇÁãÖµ¡£bcmp²»¼ì²éNULL¡£
bcopy   
Ô­ÐÍ£ºextern void bcopy(const void *src, void *dest, int n);
Ó÷¨£º#include <string.h>
   ¹¦ÄÜ£º½«×Ö·û´®srcµÄÇ°n¸ö×Ö½Ú¸´ÖƵ½destÖÐ
   ˵Ã÷£ºbcopy²»¼ì²é×Ö·û´®ÖеĿÕ×Ö½ÚNULL£¬º¯ÊýûÓзµ»ØÖµ¡£
bzero
   Ô­ÐÍ£ºextern void bzero(void *s, int n);
   Ó÷¨£º#include <string.h>
   ¹¦ÄÜ£ºÖÃ×Ö½Ú×Ö·û´®sµÄÇ°n¸ö×Ö½ÚΪÁã¡£
   ˵Ã÷£ºbzeroÎÞ·µ»ØÖµ¡£
memccpy  
   Ô­ÐÍ£ºextern void *memccpy(void *dest, void *src, unsigned char ch,
unsigned int count);
   Ó÷¨£º#include <string.h>
   ¹¦ÄÜ£ºÓÉsrcËùÖ¸ÄÚ´æÇøÓò¸´ÖƲ»¶àÓÚcount¸ö×Ö½Úµ½destËùÖ¸ÄÚ´æÇøÓò£¬Èç¹ûÓöµ½
×Ö·ûchÔòÍ£Ö¹¸´ÖÆ¡£
   ˵Ã÷£º·µ»ØÖ¸Ïò×Ö·ûchºóµÄµÚÒ»¸ö×Ö·ûµÄÖ¸Õ룬Èç¹ûsrcÇ°n¸ö×Ö½ÚÖв»´æÔÚchÔò·µ
»ØNULL¡£ch±»¸´ÖÆ¡£
 
memchr 
   Ô­ÐÍ£ºextern void *memchr(void *buf, char ch, unsigned count);
   Ó÷¨£º#include <string.h>
   ¹¦ÄÜ£º´ÓbufËùÖ¸ÄÚ´æÇøÓòµÄÇ°count¸ö×Ö½Ú²éÕÒ×Ö·ûch¡£
   ˵Ã÷£ºµ±µÚÒ»´ÎÓöµ½×Ö·ûchʱֹͣ²éÕÒ¡£Èç¹û³É¹¦£¬·µ»ØÖ¸Ïò×Ö·ûchµÄÖ¸Õ룻·ñÔò
·µ»ØNULL¡£
memcmp
   Ô­ÐÍ£ºextern int memcmp(void *buf1, void *buf2, unsigned int count);    
 
   Ó÷¨£º#include <string.h>
   ¹¦ÄÜ£º±È½ÏÄÚ´æÇøÓòbuf1ºÍbuf2µÄÇ°count¸ö×Ö½Ú¡£
   ˵Ã÷£º
         µ±buf1<buf2ʱ£¬·µ»ØÖµ<0
         µ±buf1=buf2ʱ£¬·µ»ØÖµ=0
         µ±buf1>buf2ʱ£¬·µ»ØÖµ>0
memcpy
   Ô­ÐÍ£ºextern void *memcpy(void *dest, void *src, unsigned int count);
Ó÷¨£º#include <string.h>
   ¹¦ÄÜ£ºÓÉsrcËùÖ¸ÄÚ´æÇøÓò¸´ÖÆ


Ïà¹ØÎĵµ£º

c/c++ ¿ª·¢¿â

C++Àà¿â½éÉÜ    
 
ÔÙ´ÎÌåÏÖÁËC++±£³ÖºËÐÄÓïÑÔµÄЧÂÊͬʱ´óÁ¦·¢Õ¹Ó¦ÓÿâµÄ·¢Õ¹Ç÷ÊÆ!!ÔÚC++ÖУ¬¿âµÄµØλÊǷdz£¸ßµÄ¡£C++Ö®¸¸   Bjarne  
StroustrupÏÈÉú¶à´Î±íʾÁËÉè¼Æ¿âÀ´À©³ä¹¦ÄÜÒªºÃ¹ýÉè¼Æ¸ü¶àµÄÓï·¨µÄÑÔÂÛ¡£ÏÖʵÖУ¬C++µÄ¿âÃÅÀà·±¶à£¬½â¾öµÄÎÊÌâÒ²ÊǼ«Æä¹ã·º£¬¿â´ÓÇáÁ¿¼¶µ½ÖØ
Á¿¼¶µÄ¶¼Ó ......

cÖÐÄÚ´æ·Ö²¼

¶ÑºÍÕ»µÄÇø±ð
Ò»¡¢Ô¤±¸ÖªÊ¶—³ÌÐòµÄÄÚ´æ·ÖÅä
Ò»¸öÓÉc/C++±àÒëµÄ³ÌÐòÕ¼ÓõÄÄÚ´æ·ÖΪÒÔϼ¸¸ö²¿·Ö
1¡¢Õ»Çø£¨stack£©— ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å £¬´æ·Åº¯ÊýµÄ²ÎÊýÖµ£¬¾Ö²¿±äÁ¿µÄÖµµÈ¡£Æä²Ù×÷·½Ê½ÀàËÆÓÚÊý¾Ý½á¹¹ÖеÄÕ»¡£
2¡¢¶ÑÇø£¨heap£©— Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬ Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ ¡£ ......

C/C++ ³ÌÐòԱӦƸ³£¼ûÃæÊÔÊÔÌâÉîÈëÆÊÎö


      1.ÒýÑÔ
 
¡¡¡¡±¾ÎĵÄд×÷Ä¿µÄ²¢²»ÔÚÓÚÌṩC/C++³ÌÐòÔ±ÇóÖ°ÃæÊÔÖ¸µ¼£¬¶øÖ¼ÔÚ´Ó¼¼ÊõÉÏ·ÖÎöÃæÊÔÌâµÄÄÚº­¡£ÎÄÖеĴó¶àÊýÃæÊÔÌâÀ´×Ô¸÷´óÂÛ̳£¬²¿·ÖÊÔÌâ½â´ðÒ²²Î¿¼ÁËÍøÓѵÄÒâ¼û¡£
 
¡¡¡¡Ðí¶àÃæÊÔÌâ¿´ËƼòµ¥£¬È´ÐèÒªÉîºñµÄ»ù±¾¹¦²ÅÄܸø³öÍêÃÀµÄ½â´ð¡£ÆóÒµÒªÇóÃæÊÔÕßдһ¸ö×î¼òµ¥µÄstrc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ