Click here to Skip to main content
15,887,376 members

Comments by ilostmyid2 (Top 200 by date)

ilostmyid2 8-Apr-24 17:45pm View    
Assume that I'm writing a library which may be used with many ones around the world. So the code should describe itself. If I prototype the argument of the function in header as void *, the caller (user) can't know that the parameter should be passed as type ** and they may send it as type *, unless they read the documents I provide. I want this not to happen and the function describes itself.
ilostmyid2 8-Apr-24 16:22pm View    
I didn't know about c-faq.com, thank you, but my problem is that how can I inform the callers of the function how to use it? How can I inform them that the pointer they're passing to the function should by of type "type **" not of type "type *"? Is there a way?
ilostmyid2 14-Jan-24 13:03pm View    
I'm already using sscanf, not scanf. :)
ilostmyid2 14-Jan-24 13:03pm View    
Deleted
I'm already using sscanf, not scanf. :)
ilostmyid2 14-Jan-24 7:45am View    
You mean scanf has no option?