pack_fclose(3alleg4) Allegro manual pack_fclose(3alleg4)NAME
pack_fclose - Closes a stream previously opened. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int pack_fclose(PACKFILE *f);
DESCRIPTION
Closes the stream `f' previously opened with pack_fopen() or pack_fopen_vtable(). After you have closed the stream, performing operations
on it will yield errors in your application (e.g. crash it) or even block your OS.
RETURN VALUE
Returns zero on success. On error, returns an error code which is also stored in `errno'. This function can fail only when writing to
files: if the file was opened in read mode, it will always succeed.
SEE ALSO pack_fopen(3alleg4), pack_fopen_vtable(3alleg4), packfile_password(3alleg4), expackf(3alleg4)Allegro version 4.4.2 pack_fclose(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)