Back to index

plt-scheme  4.2.1
Functions
misc.c File Reference
#include "xpmP.h"

Go to the source code of this file.

Functions

unsigned int xpmatoui (char *p, unsigned int l, unsigned int *ui_return)
char * XpmGetErrorString (int errcode)
int XpmLibraryVersion ()

Function Documentation

unsigned int xpmatoui ( char *  p,
unsigned int  l,
unsigned int ui_return 
)

Definition at line 57 of file misc.c.

{
    register unsigned int n, i;

    n = 0;
    for (i = 0; i < l; i++)
       if (*p >= '0' && *p <= '9')
           n = n * 10 + *p++ - '0';
       else
           break;

    if (i != 0 && i == l) {
       *ui_return = n;
       return 1;
    } else
       return 0;
}

Here is the caller graph for this function:

char* XpmGetErrorString ( int  errcode)

Definition at line 82 of file misc.c.

{
    switch (errcode) {
    case XpmColorError:
       return ("XpmColorError");
    case XpmSuccess:
       return ("XpmSuccess");
    case XpmOpenFailed:
       return ("XpmOpenFailed");
    case XpmFileInvalid:
       return ("XpmFileInvalid");
    case XpmNoMemory:
       return ("XpmNoMemory");
    case XpmColorFailed:
       return ("XpmColorFailed");
    default:
       return ("Invalid XpmError");
    }
}

Definition at line 108 of file misc.c.

{
    return XpmIncludeVersion;
}