Linux¾²Ì¬/¶¯Ì¬Á´½Ó¿âµÄ´´½¨ºÍʹÓÃ
ÔÎÄÁ´½Ó£ºhttp://blog.csdn.net/ecjtuync/archive/2008/10/23/3132789.aspx
Linux¾²Ì¬/¶¯Ì¬Á´½Ó¿âµÄ´´½¨ºÍʹÓÃ
ºÍWindowsϵͳһÑùLinuxÒ²Óо²Ì¬/¶¯Ì¬Á´½Ó¿â£¬ÏÂÃæ½éÉÜ´´½¨ºÍʹÓ÷½·¨£º
¼ÙÉèÓÐÏÂÃ漸¸öÎļþ£º
Í·ÎļþString.h£¬ÉùÃ÷Ïà¹Øº¯ÊýÔÐΣ¬ÄÚÈÝÈçÏ£º
Strlen.c£ºº¯ÊýStrlenµÄʵÏÖ£¬»ñÈ¡¸ø¶¨×Ö·û´®µÄ³¤¶È£¬ÄÚÈÝÈçÏ£º
Strlnen.c£ºº¯ÊýStrNlenµÄʵÏÖ£¬»ñÈ¡¸ø¶¨×Ö·û´®µÄ³¤¶È£¬Èç¹ûÊäÈë×Ö·û´®µÄ³¤¶È´óÓÚÖ¸¶¨µÄ×î´ó³¤¶È£¬Ôò·µ»Ø×î´ó³¤¶È£¬·ñÕß·µ»Ø×Ö·û´®µÄʵ¼Ê³¤¶È£¬ÄÚÈÝÈçÏ£º
Éú³É¾²Ì¬¿â£º
ÀûÓÃGCCÉú³É¶ÔӦĿ±êÎļþ£º
gcc –c Strlen.c Strnlen.c
Èç¹û¶ÔÓ¦µÄÎļþûÓдíÎó£¬gcc»á¶ÔÎļþ½øÐбàÒëÉú³ÉStrlen.oºÍStrnlen.oÁ½¸öÄ¿±êÎļþ(Ï൱ÓÚwindowsϵÄobjÎļþ)¡£È»ºóÓÃar´´½¨Ò»¸öÃû×ÖΪlibstr.aµÄ¿âÎļþ£¬²¢°ÑStrlen.o ºÍStrnlen.oµÄÄÚÈݲåÈëµ½¶ÔÓ¦µÄ¿âÎļþÖС££¬Ïà¹ØÃüÁîÈçÏ£º
ar –rc libstr.a Strlen.o Strnlen.o
ÃüÁîÖ´Ðгɹ¦ÒԺ󣬶ÔÓ¦µÄ¾²Ì¬¿âlibstr.aÒѾ³É¹¦Éú³É¡£
/***********************************
Filename : String.h
Description :
Author : HCJ
Date : 2006-5-7
************************************/
int Strlen(char *pStr);
int StrNlen(char *pStr, unsigned long ulMaxLen);
/**************************************
Filename : get string length
Description :
Author : HCJ
Date : 2006/5/7
**************************************/
#include<stdio.h>
#include<assert.h>
int Strlen(char *pStr)
{
unsigned long ulLength;
assert(NULL != pStr);
ulLength = 0;
while(*pStr++)
{
ulLength++;
}
return ulLength;
}
**********************************************
Fileneme: mystrnlen.c
Description: get input string length,if string large
max length input return max length,
&nb
Ïà¹ØÎĵµ£º
Linux»ù±¾²Ù×÷ÃüÁî
¡¡¡¡Ê×ÏȽéÉÜÒ»¸öÃû´Ê“¿ØÖÆ̨£¨console£©”£¬Ëü¾ÍÊÇÎÒÃÇͨ³£¼ûµ½µÄʹÓÃ×Ö
·û²Ù×÷½çÃæµÄÈË»ú½Ó¿Ú£¬ÀýÈçdos¡£ÎÒÃÇ˵¿ØÖÆ̨ÃüÁ¾ÍÊÇָͨ¹ý×Ö·û½çÃæÊäÈëµÄ¿ÉÒÔ²Ù×÷ϵͳµÄÃüÁÀýÈçdosÃüÁî¾ÍÊÇ¿ØÖÆ̨ÃüÁî¡£ÎÒÃÇÏÖÔÚÒªÁ˽âµÄÊÇ
»ùÓÚLinux²Ù×÷ϵͳµÄ»ù±¾¿ØÖÆ̨ÃüÁî¡£ÓÐÒ»µãÒ»¶¨Òª×¢Ò⣬ºÍdosÃü ......
1. Sed¼ò½é
sed ÊÇÒ»ÖÖÔÚÏß±à¼Æ÷£¬ËüÒ»´Î´¦ÀíÒ»ÐÐÄÚÈÝ¡£´¦Àíʱ£¬°Ñµ±Ç°´¦ÀíµÄÐд洢ÔÚÁÙʱ»º³åÇøÖУ¬³ÆΪ“ģʽ¿Õ¼ä”£¨pattern
space£©£¬½Ó×ÅÓÃsedÃüÁî´¦Àí»º³åÇøÖеÄÄÚÈÝ£¬´¦ÀíÍê³Éºó£¬°Ñ»º³åÇøµÄÄÚÈÝËÍÍùÆÁÄ»¡£½Ó×Å´¦ÀíÏÂÒ»ÐУ¬ÕâÑù²»¶ÏÖظ´£¬Ö±µ½Îļþĩβ¡£ÎļþÄÚÈݲ¢Ã»ÓÐ
¸Ä±ä£¬³ý·ÇÄãʹÓÃÖض¨Ïò´æ´¢Ê ......
Posted ʮԠ14th, 2005 by beinan
Fedora
Redhat
»ù´¡ÈëÃÅ
Fedora
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£ºLinuxSir.Org
ÕªÒª£º±¾ÎÄÖ÷Òª½²ÊöÔÚLinux ϵͳÖÐÓû§(user)ºÍÓû§×é(group)¹ÜÀíÏàÓ¦µÄ¸ÅÄÓû§(user)ºÍÓû§×é(group)Ïà¹ØÃüÁîµÄÁо٣»ÆäÖÐÒ²¶Ôµ¥Óû§¶àÈÎÎñ£¬¶àÓû§¶àÈÎÎñÒ²×öÒÔ½â˵£¬±¾ÎÄÓ¦¸Ã˵ ......
³Âð© (CSDN)
¸ÅÊö
——
ʲôÊÇ
makefile£¿»òÐíºÜ¶àWinodwsµÄ³ÌÐòÔ±¶¼²»ÖªµÀÕâ¸ö¶«Î÷£¬ÒòΪÄÇЩWindowsµÄIDE¶¼ÎªÄã×öÁËÕâ¸ö¹¤×÷£¬µ«ÎÒ¾õµÃÒª×÷Ò»¸öºÃµÄºÍ
professionalµÄ³ÌÐòÔ±£¬makefile»¹ÊÇÒª¶®¡£Õâ¾ÍºÃÏñÏÖÔÚÓÐÕâô¶àµÄHTMLµÄ±à¼Æ÷£¬µ«Èç¹ûÄãÏë³ÉΪһ¸öרҵÈËÊ¿£¬Ä㻹ÊÇÒªÁ˽â
HTMLµÄ±êʶµÄº¬Òå¡£Ìرð ......
LinuxÉϵÄÐéÄ⻯¼¼Êõ
ת×Ôhttp://blog.zhaoke.com/45.html
ÕÔçæ, 2007-01-05
ÐéÄ⻯¼¼ÊõµÄ·½·¨, ¼Ü¹¹ºÍʵÏÖ¸ÅÀÀ
¼¶±ð: Öм¶
M. Tim Jones [mtj@mtjones.com], ¹ËÎʹ¤³Ìʦ, Emulex
ÔÎÄ:
Virtual Linux
Òë: ÕÔçæ cn.zhaoke.com
http://blog.zhaoke.com/45.html
2006Äê12ÔÂ29ÈÕ
ÐéÄ⻯¼¼ÊõµÄÓ ......