libDXF 0.0.1
A library with DXF related functions written in C.

entity.c

Go to the documentation of this file.
00001 
00035 #include "global.h"
00036 
00037 
00042 int
00043 dxf_entity_skip
00044 (
00045         char *dxf_entity_name
00047 )
00048 {
00049 #if DEBUG
00050         DXF_DEBUG_BEGIN
00051 #endif
00052         char answer;
00053         if (dxf_entity_name == NULL) return (EXIT_FAILURE);
00054         if (INTER_ACTIVE_PROMPT)
00055         {
00056                 fprintf (stderr,
00057                   (_("    skip %s entity ? [Y/N]:\n")), dxf_entity_name);
00058                 answer = getchar ();
00059                 if ((answer == 'Y') || (answer == 'y'))
00060                 {
00061                         fprintf (stderr,
00062                           (_("    OK, done.\n")));
00063                 }
00064         }
00065         else
00066         {
00067                 fprintf (stderr,
00068                   (_("    skipping %s entity.\n")), dxf_entity_name);
00069         }
00070 #if DEBUG
00071         DXF_DEBUG_END
00072 #endif
00073         return (EXIT_SUCCESS);
00074 }
00075 
00076 
00077 /* EOF */