uoffset(3alleg4) Allegro manual uoffset(3alleg4)NAME
uoffset - Finds the offset of a character in a string. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int uoffset(const char *s, int index);
DESCRIPTION
Finds out the offset (in bytes from the start of the string) of the character at the specified `index' in the string `s'. A zero `index'
parameter will return the first character of the string. If `index' is negative, it counts backward from the end of the string, so an
`index' of `-1' will return an offset to the last character. Example:
int from_third_letter = uoffset(text_string, 2);
RETURN VALUE
Returns the offset in bytes to the specified character.
SEE ALSO ugetat(3alleg4), usetat(3alleg4), uinsert(3alleg4), uremove(3alleg4)Allegro version 4.4.2 uoffset(3alleg4)
Check Out this Related Man Page
set_uformat(3alleg4) Allegro manual set_uformat(3alleg4)NAME
set_uformat - Set the global current text encoding format. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void set_uformat(int type);
DESCRIPTION
Sets the current text encoding format. This will affect all parts of Allegro, wherever you see a function that returns a char *, or takes a
char * as a parameter. `type' should be one of these values:
U_ASCII - fixed size, 8-bit ASCII characters
U_ASCII_CP - alternative 8-bit codepage (see set_ucodepage())
U_UNICODE - fixed size, 16-bit Unicode characters
U_UTF8 - variable size, UTF-8 format Unicode characters
Although you can change the text format on the fly, this is not a good idea. Many strings, for example the names of your hardware drivers
and any language translations, are loaded when you call allegro_init(), so if you change the encoding format after this, they will be in
the wrong format, and things will not work properly. Generally you should only call set_uformat() once, before allegro_init(), and then
leave it on the same setting for the duration of your program.
SEE ALSO get_uformat(3alleg4), register_uformat(3alleg4), set_ucodepage(3alleg4), set_uformat(3alleg4), uconvert(3alleg4), ustrsize(3alleg4),
ugetc(3alleg4), ugetx(3alleg4), usetc(3alleg4), uwidth(3alleg4), ucwidth(3alleg4), uisok(3alleg4), uoffset(3alleg4), ugetat(3alleg4), use-
tat(3alleg4), uinsert(3alleg4), uremove(3alleg4), allegro_init(3alleg4), exunicod(3alleg4)Allegro version 4.4.2 set_uformat(3alleg4)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)
Greetings,
I'm trying to delete a file with a weird name from within Terminal on a Mac.
It's a very old file (1992) with null characters in the name: ââWord FinderÂŽ Plusâ˘.
Here are some examples of what I've tried:
12FX009:5 dpontius$ ls
ââWord FinderÂŽ Plusâ˘
12FX009:5 dpontius$ rm... (29 Replies)