hi , guys/
I again have problem with C understanding. Please help .
there's code =

/* */
#include <stdio.h> 
#include <stdlib.h>
#include <limits.h>
 main()
{ 
  char* inputstr; 


  inputstr = simple_readline(  "Please specify the input string (one more notification))" , 0);
  printf("\n You've specified string = %s\n", inputstr); 
 

 getchar();
 getchar();
 
}

char* simple_readline( const char* prompt, unsigned block_size )
  {
  char* result;   /* The malloc()ed string to return  */
  *result = "efef";
  return result;
  }

i can't understand whaere is the error here

Edited 5 Years Ago by vedro-compota: n/a

There's no prototype in scope for simple_readline() when you use it, and the arguments you provide, while compatible, don't exactly match the definition. The fix is to add a prototype for simple_readline() before main().

Edited 5 Years Ago by Narue: n/a

This question has already been answered. Start a new discussion instead.