code vault - strlast | What links here? |
//############################################################################## // copy the last n characters from the source string to the // destination string //##############################################################################
void strlast(int n, char *source, char *dest) { int i, j, s; s = strlen(source) - n; if (n < 0) s = 0;
for (i = s, j = 0; i < strlen(source); i++, j++) { dest[j] = source[i]; } dest[j] = '\0'; }
filename: | code vault - strlast |
filename: | code%20vault%20%2D%20strlast |
last edit: | March 26 2009 19:58:22 (5809 days ago) |
ct | = 1740079762.000000 = February 20 2025 14:29:22 |
ft | = 1238111902.000000 = March 26 2009 19:58:22 |
dt | = 501967860.000000 |