Back to index

tetex-bin  3.0
Functions
extend-fname.c File Reference
#include <kpathsea/config.h>

Go to the source code of this file.

Functions

string extend_filename P2C (const_string, name, const_string, default_suffix)

Function Documentation

string extend_filename P2C ( const_string  ,
name  ,
const_string  ,
default_suffix   
)

Definition at line 26 of file extend-fname.c.

{
  string new_s;
  const_string suffix = find_suffix (name);

  new_s = suffix == NULL ? concat3 (name, ".", default_suffix)
                         : (string) name;
  return new_s;
}