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 *_mki(i)
|
1985-02-08 13:12:51 +00:00
|
|
|
long i;
|
1984-11-29 14:22:02 +00:00
|
|
|
{
|
1985-02-08 13:12:51 +00:00
|
|
|
char *buffer =" ";
|
1984-11-29 14:22:02 +00:00
|
|
|
String *s;
|
|
|
|
|
1985-01-21 23:53:01 +00:00
|
|
|
s= _newstr(buffer);
|
1985-02-08 13:12:51 +00:00
|
|
|
* ( (long *)s->strval ) = i ;
|
1984-11-29 14:22:02 +00:00
|
|
|
return(s);
|
|
|
|
}
|
|
|
|
String *_mkd(d)
|
|
|
|
double d;
|
|
|
|
{
|
|
|
|
char *buffer =" ";
|
|
|
|
String *s;
|
|
|
|
|
1985-01-21 23:53:01 +00:00
|
|
|
s= _newstr(buffer);
|
1985-03-26 17:03:30 +00:00
|
|
|
* ( (double *)s->strval ) = d ;
|
1984-11-29 14:22:02 +00:00
|
|
|
return(s);
|
|
|
|
}
|
1985-02-08 13:12:51 +00:00
|
|
|
long _cvi(s)
|
1984-11-29 14:22:02 +00:00
|
|
|
String *s;
|
|
|
|
{
|
1985-02-08 13:12:51 +00:00
|
|
|
return *( (long *) s->strval) ;
|
1984-11-29 14:22:02 +00:00
|
|
|
}
|
|
|
|
double _cvd(s)
|
|
|
|
String *s;
|
|
|
|
{
|
1985-02-08 13:12:51 +00:00
|
|
|
return *( (double *) s->strval) ;
|
1984-11-29 14:22:02 +00:00
|
|
|
}
|