strset não consigo usar! Porque? [RESOLVIDO]

1. strset não consigo usar! Porque? [RESOLVIDO]

Apprentice X
ApprenticeX

(usa FreeBSD)

Enviado em 16/11/2021 - 10:18h

Bom dia a Todos.

Lendo na Internet me deparei com a função strset da biblioteca string.h
https://fresh2refresh.com/c-programming/c-strings/c-strset-function/
https://wikimass.com/c/strset

Acontece que não consigo compilá-la! Alguém sabe o motivo?
#include <stdio.h>
#include <string.h>

int main(void) {
char Text[] = "Bom dia Brasil!";
puts(Text);
strset(Text,'#'); // error: implicit declaration of function ‘strset’; did you mean ‘strsep’? [-Wimplicit-function-declaration]
puts(Text);
}



  


2. MELHOR RESPOSTA

Heitor Costa
Heitor.rj

(usa Slackware)

Enviado em 16/11/2021 - 10:41h

strset É uma função específica para Windows! Ela não faz parte da string.h da Linguagem C.