30 lines
362 B
C
30 lines
362 B
C
#include "bc_string.h"
|
|
|
|
/* $Header$ */
|
|
|
|
String *_oct(i)
|
|
int i;
|
|
{
|
|
char buffer[30];
|
|
sprintf(buffer,"%o",i);
|
|
return( (String *)_newstr(buffer));
|
|
}
|
|
|
|
String *_hex(i)
|
|
int i;
|
|
{
|
|
char buffer[30];
|
|
|
|
sprintf(buffer,"%x",i);
|
|
return( (String *)_newstr(buffer));
|
|
}
|
|
|
|
String *_nstr(f)
|
|
double f;
|
|
{
|
|
char buffer[80];
|
|
|
|
_str(f, buffer);
|
|
return (String *) _newstr(buffer);
|
|
}
|