#include <stdarg.h>

Go to the source code of this file.
Functions | |
| int | Scierror (int iv, char *fmt,...) |
| int Scierror | ( | int | iv, | |
| char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 27 of file Scierror.c.
References bsiz, ERROR_FROM_C, and error_internal().
Referenced by allmat(), asciiOthers(), bufstore(), callinterf(), CdfBase(), cdfbetErr(), cdfbetI(), cdfbinErr(), cdfbinI(), cdfchiErr(), cdfchiI(), cdfchnErr(), cdfchnI(), cdffErr(), cdffI(), cdffncErr(), cdffncI(), cdfgamErr(), cdfgamI(), cdfnbnErr(), cdfnbnI(), cdfnorErr(), cdfnorI(), cdfpoiErr(), cdfpoiI(), cdftErr(), cdftI(), check_dim_prop(), check_dims(), check_length(), check_list_one_dim(), check_list_prop(), check_one_dim(), check_prop(), check_same_dims(), check_xy(), checklhs(), checkrhs(), checkval(), cmatbptr(), cmatcptr(), cmatptr(), cmatsptr(), computeDefaultTicsLabels(), ConstructRectangle(), convertdate(), cre_smat_from_str(), cre_smat_from_str_i(), cre_sparse_from_ptr(), cre_sparse_from_ptr_i(), creadbmat(), creadchain(), creadchains(), creadcmat(), creadmat(), CreateCharVariable(), CreateCommentTList(), CreateCsteTList(), createcvar(), createcvarfrom(), createcvarfromptr(), createdata(), CreateEOLList(), CreateEqualTList(), CreateFuncallTList(), createlist(), createlistcvarfrom(), createlistcvarfromptr(), createlistvarfrom(), createlistvarfromptr(), CreateOperationTList(), createreffromname(), CreateSparseVariable(), CreateStructVariable(), createvar(), createvarfrom(), createvarfromptr(), creatework(), crebmat(), credata(), crehmat(), creimat(), creimati(), cremat(), crepointer(), cresmat(), cresmat1(), cresmat2(), cresmat3(), cresmat4(), cresmati(), cresparse(), crestringi(), crestringmatfromc(), crestringv(), crewimat(), crewmat(), DaemonOpenTCLsci(), displayErrorGateway(), dl_genErrorMessage(), do_xxprintf(), do_xxscanf(), double2z(), elementtype(), erro(), error_on_rval(), errorinfo(), F77ToSci(), fakecrebmat(), get_color_map_property(), get_logflags_arg(), get_optionals(), get_pixel_drawing_mode_property(), get_rect_arg(), get_rhs_real_hmat(), get_rhs_scalar_string(), get_strf_arg(), get_style_arg(), get_zminmax_arg(), GetCellVariable(), GetCharVariable(), getcmat(), GetControlInstruction(), GetDataFromName(), GetDoubleVariable(), getexternal(), getilist(), getimati(), GetInstruction(), GetIntegerVariable(), getlistbmat(), getlisthmat(), getlistimat(), getlistmat(), getlistpointer(), getlistrhscvar(), getlistrhsvar(), getlistscalar(), getlistsimat(), getlistsparse(), getlistvect(), getlistvectcol(), getlistvectrow(), getlistwsmat(), getmatdims(), GetMlistVariable(), getonepoly(), getpoly(), getrhscvar(), getrhssys(), getrhsvar(), getrmat(), getrvect(), getscalar(), getScalarFromStack(), GetSparseVariable(), GetStructVariable(), getvect(), getvectcol(), getvectrow(), getversion_one_rhs(), getversion_two_rhs(), getwimat(), gw_completion(), gw_fftw(), gw_graphic_export(), gw_graphics(), gw_gui(), gw_helptools(), gw_history_manager(), gw_jvm(), gw_matio(), gw_metanet(), gw_pvm(), gw_randlib(), gw_renderer(), gw_scicos(), gw_sound(), gw_special_functions2(), gw_spreadsheet(), gw_symbolic(), gw_tclsci(), gw_umfpack(), gw_windows_tools(), InitXsession(), int_objfprintf(), int_objfprintfMat(), int_objfscanf(), int_objfscanfMat(), int_objprintf(), int_objscanf(), int_objsprintf(), int_objsscanf(), intab01od(), intbackslash(), intbalanc(), intbdiagr(), intbsplin3val(), intbuildouttb(), intchol(), intcshep2d(), intdet(), intdgeesx(), intdgemm(), intduplicate(), intehm(), intendscicosim(), inteval_cshep2d(), intex13c(), intex17c(), intex1c(), intex2c(), intex4c(), intex4c_2(), intex4c_3(), intex4c_4(), intex5c(), intex6c(), intex8c(), intgetscicosvarsc(), inthess(), intihm(), intinterp1(), intinterp2d(), intinterp3d(), intinv(), intlinear_interpn(), intlsq(), intlsq_splin(), intlu(), intpermutobj_c(), intphasesim(), intqld(), intqr(), intrcond(), intschur(), intscicosimc(), intsetblockerror(), intsetenv(), intsetxproperty(), intslash(), intsmopen(), intsplin(), intsplin2d(), intsplin3d(), intspvm_bcast(), intspvm_config(), intspvm_error_mode(), intspvm_send(), intspvm_tasks(), intsvd(), intxproperty(), intzgeesx(), intzgemm(), isasciiStrings(), isref(), lcrestringmatfromc(), lengthOthers(), lmatj(), lufact1(), macr2tree(), main_sci(), matbsize(), matsize(), mspcreate(), Name2ptr(), Name2where(), Objplot3d(), optvarget(), pcre_error(), pmatj(), putlhsvar(), pvm_error_check(), Ref2val(), sci_addcb(), sci_addhistory(), sci_addinter(), sci_Beep(), sci_beta(), sci_buildDoc(), sci_c_link(), sci_calendar(), sci_champ_G(), sci_chartooem(), sci_chdir(), sci_clc(), sci_clearfun(), sci_ClipBoard(), sci_code2str(), sci_completion(), sci_consolebox(), sci_contour2di(), sci_convstr(), sci_copy(), sci_createdir(), sci_createGUID(), sci_delete(), sci_deletefile(), sci_delmenu(), sci_dgettext(), sci_dos(), sci_draw(), sci_drawaxis(), sci_emptystr_two_rhs(), sci_error(), sci_exportUI(), sci_fec(), sci_fftw(), sci_fftw_flags(), sci_fileext(), sci_findfileassociation(), sci_findfiles(), sci_fullpath(), sci_funptr(), sci_get(), sci_get_absolute_file_path(), sci_get_fftw_wisdom(), sci_getcallbackobject(), sci_getcwd(), sci_getdate(), sci_gethistory(), sci_gethistoryfile(), sci_getinstalledlookandfeels(), sci_getlongpathname(), sci_getlookandfeel(), sci_getmd5(), sci_getmodules(), sci_getrelativefilename(), sci_getshortpathname(), sci_getsystemmetrics(), sci_gettext(), sci_getvariablesonstack(), sci_glue(), sci_grep(), sci_grep_common(), sci_gsort(), sci_gstacksize(), sci_helpbrowser(), sci_historymanager(), sci_host(), sci_isalphanum(), sci_isascii(), sci_isdigit(), sci_isdir(), sci_isletter(), sci_javaclasspath(), sci_javalibrarypath(), sci_Legend(), sci_legendre(), sci_libraryinfo(), sci_lines(), sci_link(), sci_loadfftwlibrary(), sci_matfile_close(), sci_matfile_listvar(), sci_matfile_open(), sci_matfile_varreadnext(), sci_matfile_varwrite(), sci_matplot(), sci_maxfiles(), sci_mcisendstring(), sci_messagebox(), sci_move(), sci_mpopup(), sci_newaxes(), sci_newest(), sci_newfun(), sci_oemtochar(), sci_param3d(), sci_param3d1(), sci_part(), sci_Playsound(), sci_plot2d(), sci_plot2d1_G(), sci_plot3d(), sci_printfigure(), sci_progressionbar(), sci_prompt(), sci_qp_solve(), sci_Rand(), sci_readgateway(), sci_regexp(), sci_relocate_handle(), sci_removedir(), sci_removelinehistory(), sci_res_with_prec(), sci_saveafterncommands(), sci_saveconsecutivecommands(), sci_set(), sci_set_fftw_wisdom(), sci_setdefaultlanguage(), sci_setlanguage(), sci_setlookandfeel(), sci_setmenu(), sci_showalluimenushandles(), sci_sleep(), sci_stacksize(), Sci_Store(), sci_str2code(), sci_strcat_one_rhs(), sci_strcat_rhs_one_is_a_matrix(), sci_strcat_three_rhs(), sci_strcat_two_rhs(), sci_strchr(), sci_strcmp(), sci_strcspn(), sci_strindex(), sci_string(), sci_stringbox(), sci_stripblanks(), sci_strncpy(), sci_strrchr(), sci_strrev(), sci_strsplit(), sci_strspn(), sci_strstr(), sci_strsubst(), sci_strtod(), sci_strtok(), sci_swap_handles(), sci_system_getproperty(), sci_system_setproperty(), sci_taucs_chdel(), sci_taucs_chfact(), sci_taucs_chget(), sci_taucs_chsolve(), sci_TCL_DeleteInterp(), sci_TCL_EvalFile(), sci_TCL_EvalStr(), sci_TCL_ExistArray(), sci_TCL_ExistInterp(), sci_TCL_ExistVar(), sci_TCL_GetVar(), sci_TCL_GetVersion(), sci_TCL_SetVar(), sci_TCL_UnsetVar(), sci_TCL_UpVar(), sci_tokens(), sci_toolbar(), sci_toprint(), sci_uicontrol(), sci_uigetcolor(), sci_uigetdir(), sci_uigetfont(), sci_uimenu(), sci_uiwait(), sci_ulink(), sci_umf_ludel(), sci_umf_lufact(), sci_umf_luget(), sci_umf_lusolve(), sci_umfpack(), sci_unglue(), sci_unsetmenu(), sci_waitbar(), sci_warning(), sci_where(), sci_who(), sci_winhttpdownload(), sci_winopen(), sci_winqueryreg(), sci_with_module(), sci_x_choice(), sci_x_choose(), sci_x_choose_modeless(), sci_x_dialog(), sci_x_mdialog(), sci_xarcs(), sci_xarrows(), sci_xfarcs(), sci_xfpolys(), sci_xgetfile(), sci_xgetmouse(), sci_xls_open(), sci_xls_read(), sci_xpause(), sci_xpoly(), sci_xrect(), sci_xrects(), sci_xsegs(), sci_xset(), sci_xstringb(), sci_xtape(), sci_xtitle(), sciblk4(), scibuiltin(), scifunction(), scipvmconfig(), scipvmtasks(), sciRelocateHandles(), sciSetColormap(), sciSetPoint(), scistring(), sciSwapObjects(), SciToF77(), SetVarAString(), SetVarMatrix(), SetVarScalar(), SetVarStrings(), setworksize(), smatj(), stcreate(), swapHandles(), TCL_ArrayDim(), TCL_ArrayExist(), TCL_ArraySize(), TCL_EvalScilabCmd(), vcopyobj(), vectsize(), xlfont_n_rhs(), xlfont_one_rhs(), xs2file(), and z2double().
00028 { 00029 int retval = 0; 00030 integer lstr = 0; 00031 char s_buf[bsiz]; 00032 va_list ap; 00033 00034 va_start(ap,fmt); 00035 00036 #if defined (vsnprintf) || defined (linux) 00037 retval = vsnprintf(s_buf,bsiz-1, fmt, ap ); 00038 #else 00039 retval = vsprintf(s_buf,fmt, ap ); 00040 #endif 00041 if (retval == -1) s_buf[bsiz-1]='\0'; 00042 00043 lstr = (integer)strlen(s_buf); 00044 va_end(ap); 00045 00046 error_internal(&iv,s_buf,ERROR_FROM_C); 00047 00048 return retval; 00049 }

1.5.5