erro.c

Go to the documentation of this file.
00001 /*-----------------------------------------------------------------------------------*/
00002 /* CORNET Allan */
00003 /* INRIA 2006 */
00004 /*-----------------------------------------------------------------------------------*/
00005 #include <string.h>
00006 #include "machine.h"
00007 #include "Scierror.h"
00008 #include "MALLOC.h"
00009 #include "libinter.h"
00010 /*-----------------------------------------------------------------------------------*/
00011 int C2F(erro)(char *str,unsigned int 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 }
00023 /*-----------------------------------------------------------------------------------*/

Generated on Sun Mar 4 15:03:57 2007 for Scilab [trunk] by  doxygen 1.5.1