|
|
@@ -698,6 +698,24 @@ int string_split_space (char * string) { |
|
|
|
return (++count); |
|
|
|
} |
|
|
|
|
|
|
|
char * string_realign (char * string, int amount, char character) { |
|
|
|
int offset, length; |
|
|
|
|
|
|
|
length = string_length (string); |
|
|
|
|
|
|
|
for (offset = 0; offset != length; ++offset) { |
|
|
|
string [amount - offset - 1] = string [length - offset - 1]; |
|
|
|
} |
|
|
|
|
|
|
|
for (offset = 0; offset != amount - length; ++offset) { |
|
|
|
string [offset] = character; |
|
|
|
} |
|
|
|
|
|
|
|
string [amount] = '\0'; |
|
|
|
|
|
|
|
return (string); |
|
|
|
} |
|
|
|
|
|
|
|
void memory_delete (void * memory, int length) { |
|
|
|
int i = 0; |
|
|
|
|
|
|
|