Exemple #1
0
/* Convert Long to String */
static long cvt_l_st(
    epicsInt32 *from,
    char *to,
    const dbAddr *paddr)
{
    cvtLongToString(*from, to);
    return(0);
}
Exemple #2
0
int testConvertFast()
{
    char message[80];
    long values[NVALUES] = {-2147483648,-1,0,1,2147483647};
    long value;
    int i;

    for(i=0; i<NVALUES; i++) {
	value = values[i];
        cvtLongToString(value,message);
        printf("cvtLongToString %s\n",message);
        cvtLongToHexString(value,message);
        printf("cvtLongToHexString %s\n",message);
        cvtLongToOctalString(value,message);
        printf("cvtLongToOctalString %s\n",message);
    }
    return(0);
}