erro.c File Reference

#include <string.h>
#include "machine.h"
#include "Scierror.h"
#include "MALLOC.h"
#include "libinter.h"

Include dependency graph for erro.c:

Go to the source code of this file.

Functions

int C2F() erro (char *str, unsigned int str_len)


Function Documentation

int C2F() erro ( char *  str,
unsigned int  str_len 
)

Definition at line 11 of file erro.c.

References FREE, MALLOC, NULL, str, and str_len.

00012 {
00013                 char *LocalStr=(char*)MALLOC(sizeof(char)*str_len+1);
00014                 if (LocalStr)
00015                 {
00016                         strcpy(LocalStr,str);
00017                         Scierror(9999,LocalStr);
00018                         FREE(LocalStr);
00019                         LocalStr=NULL;
00020                 }
00021                 return 0;
00022 }


Generated on Sun Mar 4 16:08:54 2007 for Scilab [trunk] by  doxygen 1.5.1