2013-05-14 15:11:29 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
1985-02-04 22:18:16 +00:00
|
|
|
#include "bc_string.h"
|
1984-11-29 14:22:02 +00:00
|
|
|
|
1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1984-11-29 14:22:02 +00:00
|
|
|
|
|
|
|
String *_oct(i)
|
|
|
|
int i;
|
|
|
|
{
|
|
|
|
char buffer[30];
|
|
|
|
sprintf(buffer,"%o",i);
|
|
|
|
return( (String *)_newstr(buffer));
|
|
|
|
}
|
|
|
|
|
|
|
|
String *_hex(i)
|
|
|
|
int i;
|
|
|
|
{
|
|
|
|
char buffer[30];
|
1988-07-04 11:44:03 +00:00
|
|
|
|
1984-11-29 14:22:02 +00:00
|
|
|
sprintf(buffer,"%x",i);
|
|
|
|
return( (String *)_newstr(buffer));
|
|
|
|
}
|
1988-07-04 11:44:03 +00:00
|
|
|
|
|
|
|
String *_nstr(f)
|
|
|
|
double f;
|
|
|
|
{
|
|
|
|
char buffer[80];
|
|
|
|
|
|
|
|
_str(f, buffer);
|
|
|
|
return (String *) _newstr(buffer);
|
|
|
|
}
|