неявное объявление с использованием -std = c99

Я получаю предупреждение: ( -std = c99 -pedantic )

warning: implicit declaration of function ‘strndup’ [-Wimplicit-function-declaration]

но я импортирую эти библиотеки:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

И что ?! : (


// file.c:
    #include "file.h"
    strndup(...)
// file.h:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
13
задан Jonathon Reinhart 19 October 2016 в 16:13
поделиться