Back to index

php5  5.3.10
Functions
rt.c File Reference
#include <config.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
#include "bcmath.h"
#include "private.h"

Go to the source code of this file.

Functions

void bc_rt_warn (char *mesg,...)
void bc_rt_error (char *mesg,...)

Function Documentation

void bc_rt_error ( char *  mesg,
  ... 
)

Definition at line 55 of file rt.c.

{
  va_list args;
  char error_mesg [255];

  va_start (args, mesg);
  vsnprintf (error_mesg, sizeof(error_mesg), mesg, args);
  va_end (args);

  fprintf (stderr, "bc math error: %s\n", error_mesg);
}

Here is the caller graph for this function:

void bc_rt_warn ( char *  mesg,
  ... 
)

Definition at line 42 of file rt.c.

{
  va_list args;
  char error_mesg [255];

  va_start (args, mesg);
  vsnprintf (error_mesg, sizeof(error_mesg), mesg, args);
  va_end (args);

  fprintf (stderr, "bc math warning: %s\n", error_mesg);
}

Here is the caller graph for this function: