ustrdup(3alleg4) Allegro manual ustrdup(3alleg4)NAME
ustrdup - Duplicates a string. Allegro game programming library.
char *ustrdup(const char *src)
This functions copies the null-terminated string `src' into a newly allocated area of memory, effectively duplicating it. Example:
void manipulate_string(const char *input_string)
char *temp_buffer = ustrdup(input_string);
/* Now we can modify temp_buffer */
Returns the newly allocated string. This memory must be freed by the caller. Returns NULL if it cannot allocate space for the duplicated
SEE ALSO _ustrdup(3alleg4), uconvert(3alleg4), ustrsize(3alleg4), ustrsizez(3alleg4), exconfig(3alleg4)Allegro version 4.4.2 ustrdup(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)
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)