C Help

Discussion in 'Mac Basics and Help' started by scan, Mar 6, 2006.

  1. scan macrumors 6502

    Oct 24, 2005
    is there a way to read an input string from the user that will include the spaces?
  2. bousozoku Moderator emeritus

    Jun 25, 2002
    Gone but not forgotten.
  3. ChrisA macrumors G4

    Jan 5, 2006
    Redondo Beach, California
    What's the context here? A command line program reading from stdin? Or is this some graphial interfacewhere you've put up a dialog box. Or is this a cgibin program running off a web server? You need to define the problem.

    For starts read "man stdio" and then read the "see also" subjects at the bottom of the page.

    That said, when I read user input that a user is typing, I always like to use the "readline" library. Users kind of expect this functionality now days..

Share This Page