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

test_make_one_line.c

This example shows how to use the function make_one_line().

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

char TEST[] = "\n\n\n \n \n \n toto est la\n et\n  toto  \naussi   \n\n\n";



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

  res = make_one_line (TEST);
  if (res == NULL)
  {
    fprintf (stderr, "\nERROR: Can not allocate memory !!!\n");
    return 1;
  }

  fprintf (stdout, "\n\nSRC = [%s]", TEST);
  fprintf (stdout, "\n\nDST = [%s]", res);

  fprintf (stdout, "\n");

  return 0;
}


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