Exemple #1
0
char	*gnl_querat_g(const int fd)
{
  static char	buffer[BUFF];
  static int	j;
  static int	lus;
  char		*line;

  line = NULL;
  if (BUFF < 1)
    return (NULL);
  while (42)
    {
      if (fd < 0)
	return (NULL);
      if (!(read_gnl(&j, &lus, &fd, buffer)))
	return (line);
      if (!(line = mallocat(line, buffer, &j, lus)))
	return (NULL);
      if (buffer[j] == '\n')
	{
	  j++;
	  return (line);
	}
    }
  return (line);
}
Exemple #2
0
void* operator new (size_t size, void* at) {
	return mallocat(at, size);
}