Back to index

lightning-sunbird  0.9+nobinonly
stdio.c File Reference
#include "prlog.h"
#include "prinit.h"
#include "prio.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.


static PRIntn PR_CALLBACK stdio (PRIntn argc, char **argv)
int main (int argc, char **argv)
 The Xalan testcases app.

Function Documentation

int main ( int  argc,
char **  argv 

The Xalan testcases app.

Definition at line 76 of file stdio.c.

    return PR_Initialize(stdio, argc, argv, 0);
}  /* main */

Here is the call graph for this function:

static PRIntn PR_CALLBACK stdio ( PRIntn  argc,
char **  argv 
) [static]

Definition at line 56 of file stdio.c.

    PRInt32 rv;

    PRFileDesc *out = PR_GetSpecialFD(PR_StandardOutput);
    PRFileDesc *err = PR_GetSpecialFD(PR_StandardError);

    rv = PR_Write(
        out, "This to standard out\n",
        strlen("This to standard out\n"));
    PR_ASSERT((PRInt32)strlen("This to standard out\n") == rv);
    rv = PR_Write(
        err, "This to standard err\n",
        strlen("This to standard err\n"));
    PR_ASSERT((PRInt32)strlen("This to standard err\n") == rv);

    return 0;

}  /* stdio */

Here is the caller graph for this function: