linux man page for replace_filename

Query: replace_filename

OS: linux

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

replace_filename(3alleg4)					  Allegro manual					 replace_filename(3alleg4)

NAME
replace_filename - Replaces path+filename with a new filename tail. Allegro game programming library.
SYNOPSIS
#include <allegro.h> char *replace_filename(char *dest, const char *path, const char *filename, int size);
DESCRIPTION
Replaces the specified path+filename with a new filename tail, storing at most `size' bytes into the `dest' buffer. You can use the same buffer both as input and output because Allegro internally works on a copy of the input before touching `dest'. Example: char name[200]; ... get_executable_name(name, sizeof(name)); replace_filename(name, name, "sound.dat", sizeof(name));
RETURN VALUE
Returns a copy of the `dest' parameter.
SEE ALSO
get_filename(3alleg4), replace_extension(3alleg4), append_filename(3alleg4) Allegro version 4.4.2 replace_filename(3alleg4)
Related Man Pages
canonicalize_filename(3alleg4) - debian
make_relative_filename(3alleg4) - debian
get_filename(3alleg4) - netbsd
get_filename(3alleg4) - php
get_filename(3alleg4) - v7
Similar Topics in the Unix Linux Community
Script to List, Modify, replace filename for an upload?
Replace Filename and text inside of directory