gsasl  1.10.0
About: GNU SASL is an implementation of the Simple Authentication and Security Layer (SASL). Development version.
  Fossies Dox: gsasl-1.10.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

getdelim.c File Reference
#include <config.h>
#include <stdio.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
Include dependency graph for getdelim.c:

Go to the source code of this file.


#define _GL_ARG_NONNULL(params)
#define SSIZE_MAX   ((ssize_t) (SIZE_MAX / 2))
#define flockfile(x)   ((void) 0)
#define funlockfile(x)   ((void) 0)
#define getc_maybe_unlocked(fp)   getc(fp)


static void alloc_failed (void)
ssize_t getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)

Macro Definition Documentation


#define _GL_ARG_NONNULL (   params)

Definition at line 22 of file getdelim.c.

◆ flockfile

#define flockfile (   x)    ((void) 0)

Definition at line 43 of file getdelim.c.

◆ funlockfile

#define funlockfile (   x)    ((void) 0)

Definition at line 44 of file getdelim.c.

◆ getc_maybe_unlocked

#define getc_maybe_unlocked (   fp)    getc(fp)

Definition at line 45 of file getdelim.c.


#define SSIZE_MAX   ((ssize_t) (SIZE_MAX / 2))

Definition at line 34 of file getdelim.c.

Function Documentation

◆ alloc_failed()

static void alloc_failed ( void  )

Definition at line 51 of file getdelim.c.

Referenced by getdelim().

◆ getdelim()

ssize_t getdelim ( char **  lineptr,
size_t n,
int  delimiter,
FILE *  fp 

Definition at line 67 of file getdelim.c.

References alloc_failed(), EOVERFLOW, flockfile, funlockfile, getc_maybe_unlocked, NULL, SIZE_MAX, size_t(), and SSIZE_MAX.

Referenced by getline().