Back to index

glibc  2.9
Defines | Functions
test-stpcpy_chk.c File Reference
#include "../string/test-string.h"
#include "test-strcpy_chk.c"

Go to the source code of this file.

Defines

#define STRCPY_RESULT(dst, len)   ((dst) + (len))
#define TEST_MAIN

Functions

void __attribute__ ((noreturn))

Define Documentation

#define STRCPY_RESULT (   dst,
  len 
)    ((dst) + (len))

Definition at line 21 of file test-stpcpy_chk.c.

#define TEST_MAIN

Definition at line 22 of file test-stpcpy_chk.c.


Function Documentation

void __attribute__ ( (noreturn)  )

Definition at line 25 of file test-stpcpy_chk.c.

{
  if (! len)
    __chk_fail ();
  while ((*dst++ = *src++) != '\0')
    if (--len == 0)
      __chk_fail ();
  return dst - 1;
}

Here is the call graph for this function: