Back to index

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

Go to the source code of this file.

Functions

int XpmWriteFileFromData (char *filename, char **data)

Function Documentation

int XpmWriteFileFromData ( char *  filename,
char **  data 
)

Definition at line 38 of file WrFFrDat.c.

{
    XpmImage image;
    XpmInfo info;
    int ErrorStatus;

    info.valuemask = XpmReturnComments | XpmReturnExtensions;

    ErrorStatus = XpmCreateXpmImageFromData(data, &image, &info);

    if (ErrorStatus != XpmSuccess)
       return (ErrorStatus);

    ErrorStatus = XpmWriteFileFromXpmImage(filename, &image, &info);

    XpmFreeXpmImage(&image);
    XpmFreeXpmInfo(&info);

    return (ErrorStatus);
}

Here is the call graph for this function: