libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00035 #include "endsec.h" 00036 00037 00051 int 00052 dxf_endsec_write 00053 ( 00054 DxfFile *fp 00056 ) 00057 { 00058 #if DEBUG 00059 DXF_DEBUG_BEGIN 00060 #endif 00061 /* Do some basic checks. */ 00062 if (fp == NULL) 00063 { 00064 fprintf (stderr, 00065 (_("Error in %s () a NULL file pointer was passed.\n")), 00066 __FUNCTION__); 00067 return (EXIT_FAILURE); 00068 } 00069 /* Start writing output. */ 00070 fprintf (fp->fp, " 0\nENDSEC\n"); 00071 #if DEBUG 00072 DXF_DEBUG_END 00073 #endif 00074 return (EXIT_SUCCESS); 00075 } 00076 00077 00078 /* EOF */