1uinsert(3)                      Allegro manual                      uinsert(3)
2
3
4

NAME

6       uinsert  -  Inserts  a  character in a string. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int uinsert(char *s, int index, int c);
14

DESCRIPTION

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

RETURN VALUE

23       Returns the number of bytes by which the trailing part  of  the  string
24       was moved.
25
26

SEE ALSO

28       uoffset(3), ugetat(3), usetat(3), uremove(3)
29
30
31
32Allegro                          version 4.2.2                      uinsert(3)
Impressum