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