logo elektroda
logo elektroda
X
logo elektroda
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Warning przy funkcji strlen()

Piotr Kania 11 Mar 2009 19:45 1807 2
  • #1 6268494
    Piotr Kania
    Poziom 15  
    Witam oto fragment mojego programu
    
    void sendsms(char *tekst)
    {
    char len, i, n, ch_1, ch_2;
    n= len = strlen(tekst);  / /  tu coś nie gra 
    


    dostaje takie informacje
    warning: implicit declaration of function 'strlen'
    warning: incompatible implicit declaration of built-in function 'strlen'
    warning: passing argument 1 of 'strlen' makes pointer from integer without a cast

    czy ktoś wie jaka jest przyczyna?

    Poprawiłem tytuł - regulamin p.11.1
    [zumek]
  • #3 6268821
    Piotr Kania
    Poziom 15  
    brakowało #include <string.h> dziękuje bardzo za pomoc :)
REKLAMA