Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Examples  

test_get_end_of_string.c

This file shows how to use the function get_end_of_string().

#include <stdio.h>
#include "strings_utils.h"

int main (int argc, char *argv[])
{
   char res[1024], *pt;

   if (argc != 2)
   {
     fprintf (stdout, "\nUsage: get_end_of_string.test string\n");
     return 1;
   }

   pt = get_end_of_string(argv[1], res, 1024); 
   if (pt == NULL)
   {
     fprintf (stdout, "\nInvalid size ...\n");
     return 1;
   }

   fprintf (stdout, "\nResultat: [%s]\n\n", res);
   return 0;
}

Generated on Thu Apr 3 16:23:40 2003 for Common_C_libraries by doxygen1.3-rc1