1uremove(3) Allegro manual uremove(3)
2
3
4
6 uremove - Removes a character from a string. Allegro game programming
7 library.
8
10 #include <allegro.h>
11
12
13 int uremove(char *s, int index);
14
16 Removes the character at the specified `index' within the string, slid‐
17 ing the rest of the data back to fill the gap. If `index' is negative,
18 it counts backward from the end of the string. Example:
19
20 int length_in_bytes = ustrsizez(text_string);
21 ...
22 length_in_bytes -= uremove(text_string, -1);
23
25 Returns the number of bytes by which the trailing part of the string
26 was moved.
27
28
30 uoffset(3), ugetat(3), usetat(3), uinsert(3)
31
32
33
34Allegro version 4.4.3 uremove(3)