Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

How to include a comma in fscanf

$
0
0

i want to scan the line "Ryan, Elizabeth 62" with fscanf like this

fscanf(file_ptr, "%s %d", name[i], &age[i]);

but fscanf takes the comma as a flag to stop scanning the name.How can i succeed?

thx


Viewing all articles
Browse latest Browse all 12141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>