]]>Why "The system cannot find the batch label specified" is thrown even if label exists?http://m.shnenglu.com/85940806/archive/2011/08/30/154716.htmlMike SongMike SongTue, 30 Aug 2011 09:27:00 GMThttp://m.shnenglu.com/85940806/archive/2011/08/30/154716.htmlhttp://m.shnenglu.com/85940806/comments/154716.htmlhttp://m.shnenglu.com/85940806/archive/2011/08/30/154716.html#Feedback0http://m.shnenglu.com/85940806/comments/commentRss/154716.htmlhttp://m.shnenglu.com/85940806/services/trackbacks/154716.htmlThis is caused by the different line endings after syncing from P4. The P4 client has settings for LineEnd, "local" will show CRLF, while "share" shows LF. This error maybe only existing in x86 machine.
This is tricky issue. Thanks very much for Jeffery's help.
]]>15 - memchrhttp://m.shnenglu.com/85940806/archive/2011/06/11/148508.htmlMike SongMike SongSat, 11 Jun 2011 14:11:00 GMThttp://m.shnenglu.com/85940806/archive/2011/06/11/148508.htmlhttp://m.shnenglu.com/85940806/comments/148508.htmlhttp://m.shnenglu.com/85940806/archive/2011/06/11/148508.html#Feedback0http://m.shnenglu.com/85940806/comments/commentRss/148508.htmlhttp://m.shnenglu.com/85940806/services/trackbacks/148508.html/*** *char *memchr(buf, chr, cnt) - search memory for given character. * *Purpose: * Searches at buf for the given character, stopping when chr is * first found or cnt bytes have been searched through. * *Entry: * void *buf - memory buffer to be searched * int chr - character to search for * size_t cnt - max number of bytes to search * *Exit: * returns pointer to first occurence of chr in buf * returns NULL if chr not found in the first cnt bytes * *Exceptions: * *******************************************************************************/
]]>14 - memcpy and memmove differencehttp://m.shnenglu.com/85940806/archive/2011/06/11/148507.htmlMike SongMike SongSat, 11 Jun 2011 14:09:00 GMThttp://m.shnenglu.com/85940806/archive/2011/06/11/148507.htmlhttp://m.shnenglu.com/85940806/comments/148507.htmlhttp://m.shnenglu.com/85940806/archive/2011/06/11/148507.html#Feedback0http://m.shnenglu.com/85940806/comments/commentRss/148507.htmlhttp://m.shnenglu.com/85940806/services/trackbacks/148507.html/*** *memmove - Copy source buffer to destination buffer * *Purpose: * memmove() copies a source memory buffer to a destination memory buffer. * This routine recognize overlapping buffers to avoid propogation. * For cases where propogation is not a problem, memcpy() can be used. * *Entry: * void *dst = pointer to destination buffer * const void *src = pointer to source buffer * size_t count = number of bytes to copy * *Exit: * Returns a pointer to the destination buffer * *Exceptions: *******************************************************************************/
void* __cdecl mymemcpy ( void* dst, constvoid* src, size_t count ) { void* ret = dst; /* * copy from lower addresses to higher addresses */ while (count--) { *(char*)dst =*(char*)src; dst = (char*)dst +1; src = (char*)src +1; }
]]>13 - memmovehttp://m.shnenglu.com/85940806/archive/2011/06/11/148506.htmlMike SongMike SongSat, 11 Jun 2011 13:52:00 GMThttp://m.shnenglu.com/85940806/archive/2011/06/11/148506.htmlhttp://m.shnenglu.com/85940806/comments/148506.htmlhttp://m.shnenglu.com/85940806/archive/2011/06/11/148506.html#Feedback0http://m.shnenglu.com/85940806/comments/commentRss/148506.htmlhttp://m.shnenglu.com/85940806/services/trackbacks/148506.html/*** *memmove - Copy source buffer to destination buffer * *Purpose: * memmove() copies a source memory buffer to a destination memory buffer. * This routine recognize overlapping buffers to avoid propogation. * For cases where propogation is not a problem, memcpy() can be used. * *Entry: * void *dst = pointer to destination buffer * const void *src = pointer to source buffer * size_t count = number of bytes to copy * *Exit: * Returns a pointer to the destination buffer * *Exceptions: *******************************************************************************/
]]>12 - memset http://m.shnenglu.com/85940806/archive/2011/06/11/148505.htmlMike SongMike SongSat, 11 Jun 2011 13:32:00 GMThttp://m.shnenglu.com/85940806/archive/2011/06/11/148505.htmlhttp://m.shnenglu.com/85940806/comments/148505.htmlhttp://m.shnenglu.com/85940806/archive/2011/06/11/148505.html#Feedback0http://m.shnenglu.com/85940806/comments/commentRss/148505.htmlhttp://m.shnenglu.com/85940806/services/trackbacks/148505.html/*** *char *memset(dst, val, count) - sets "count" bytes at "dst" to "val" * *Purpose: * Sets the first "count" bytes of the memory starting * at "dst" to the character value "val". * *Entry: * void *dst - pointer to memory to fill with val * int val - value to put in dst bytes * size_t count - number of bytes of dst to fill * *Exit: * returns dst, with filled bytes * *Exceptions: * *******************************************************************************/