Subversion Repositories HelenOS

Rev

Rev 3750 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3750 Rev 4011
Line 158... Line 158...
158
   
158
   
159
    for (i = 0; i < cnt; i++)
159
    for (i = 0; i < cnt; i++)
160
        p[i] = x;  
160
        p[i] = x;  
161
}
161
}
162
 
162
 
163
/** Copy string.
-
 
164
 *
-
 
165
 * Copy string from src address to dst address.  The copying is done
-
 
166
 * char-by-char until the null character. The source and destination memory
-
 
167
 * areas cannot overlap.
-
 
168
 *
-
 
169
 * @param src       Source string to copy from.
-
 
170
 * @param dst       Destination string to copy to.
-
 
171
 *
-
 
172
 * @return      Address of the destination string.
-
 
173
 */
-
 
174
char *strcpy(char *dest, const char *src)
-
 
175
{
-
 
176
    char *orig = dest;
-
 
177
   
-
 
178
    while ((*(dest++) = *(src++)))
-
 
179
        ;
-
 
180
    return orig;
-
 
181
}
-
 
182
 
-
 
183
/** @}
163
/** @}
184
 */
164
 */