bridge/class-master/depend/pari/src/modules/mpqs.c
/* determines a unique name for a file based on a short nickname
 * name is allocated on the stack */
determines a unique name for a file based on a short nickname
name is allocated on the stack
determines a unique name for a file based on a short nickname name is allocated on the stack
static char *
mpqs_get_filename(char *dir, const char *s)
{
  char *buf = stack_malloc(strlen(dir) + strlen(s) + 2);
#if defined(__EMX__)
  sprintf(buf, "%s\\%s", dir,s);
#else
  sprintf(buf, "%s/%s", dir,s);
#endif
  return buf;
}
static char * mpqs_get_filename ( char * dir , const char * s ) { char * buf = stack_malloc ( strlen ( dir ) + strlen ( s ) + 2 ) ; #if defined ( __EMX__ ) sprintf ( buf , " \\ " , dir , s ) ; #else sprintf ( buf , " " , dir , s ) ; #endif return buf ; }
determines a unique name for a file based on a short nickname
 name is allocated on the stack
determines a unique name for a file based on a short nickname name is allocated on the stack