too few arguments for call !!

0 Ahmed Samir · August 8, 2015
i tried to use puts and gets functions yesterday and i made a very simple code 
but whenever i try to debug i get "gets_s : too few arguments for call" !!

that's the code i used 

/images/forum/upload/2015-08-08/d2be102e80a5dc3c79a83f4b56cbea31.jpg

i even tried to copy the code in the tutorial still the same 

Post a Reply

Replies

Oldest  Newest  Rating
+1 c student · August 9, 2015
Parameters

 [out] buffer
Storage location for input string.

  [in] sizeInCharacters
The size of the buffer.


https://msdn.microsoft.com/en-us/library/5b5x9wc7.aspx
0 Ahmed Samir · August 10, 2015
hmm meaning?
+1 Tatrasiel R · August 10, 2015
Gets needs a place to store the data and the size of what it's storing..

I show this in my assembly series.

so this should work


gets_s(fname, sizeof(fname));
0 Ahmed Samir · August 10, 2015
thanks people :)
  • 1

C

107,149 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator