Isn't strdup.h useless code?

Поиск
Список
Период
Сортировка
Искать

Isn't strdup.h useless code?

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
While looking around to see where to insert strlcpy(), I couldn't help
noticing that port/strdup.c has its very own header file,
include/strdup.h.  AFAICS this is utterly redundant given that we have

#ifndef HAVE_STRDUP
extern char *strdup(char const *);
#endif

in port.h.  Can anyone see a reason not to remove the extra header?
		regards, tom lane

FAQ