Back to index

tetex-bin  3.0
substring.c File Reference
#include "system.h"

Go to the source code of this file.


char * substring (const char *start, const char *end)

Function Documentation

char* substring ( const char *  start,
const char *  end 

Definition at line 23 of file substring.c.

  char *result = xmalloc (end - start + 1);
  char *scan_result = result;
  const char *scan = start;

  while (scan < end)
    *scan_result++ = *scan++;

  *scan_result = 0;
  return result;

Here is the call graph for this function:

Here is the caller graph for this function: