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 (5879 days ago) |
ct | = 1746064514.000000 = April 30 2025 21:55:14 |
ft | = 1238111902.000000 = March 26 2009 19:58:22 |
dt | = 507952612.000000 |