Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 2124 → Rev 2125

/trunk/kernel/generic/src/lib/memstr.c
115,5 → 115,24
p[i] = x;
}
 
/** Copy string
*
* Copy string from src address to dst address.
* The copying is done char-by-char until the null
* character. The source and destination memory areas
* cannot overlap.
*
* @param src Origin string to copy from.
* @param dst Origin string to copy to.
*
*/
char *strcpy(char *dest, const char *src)
{
char *orig = dest;
while ((*(dest++) = *(src++)));
return orig;
}
 
/** @}
*/