Sponsored Content
Full Discussion: new to C
Top Forums Programming new to C Post 32810 by Perderabo on Saturday 7th of December 2002 02:55:03 PM
Old 12-07-2002
You have a getchar in your loop. Each iteration on the loop will get a single character. If you literally type "-1 <return>", you will get a "-" on the iteration, a "1" on the second iteration, and a newline on the third iteration. On the fourth iteration, it must get another line from the keyboard.

I explained the -1 verses cntl D as best I could in my first post.
 
OCSIGEN(1)						      General Commands Manual							OCSIGEN(1)

NAME
ocsigen - Web Development framework in OCaml SYNOPSIS
ocsigen [options] DESCRIPTION
ocsigen is a programming framework providing a new way to create dynamic web sites. Its goal is to offer an alternative to Apache/PHP, based on cutting-edge technologies coming from research in programming languages. With ocsigen, you program in a concise and modular way, with a strong type system which helps you to produce valid xhtml. The server handles sessions, URLs, and page parameters automatically. OPTIONS
-c, --config Alternate configuration file. -d, --daemon Daemon mode (detach the process). This is the default when there are more than 1 process. -help, --help Show summary of options. -p, --pidfile Specify a file where to write the PIDs of the servers. -s, --silent Silent mode (error messages go in errors.log only). -v, --verbose Verbose mode. -V , --veryverbose Very verbose mode (debug). -version Show version of program. SEE ALSO
ocamlc(1). AUTHOR
ocsigen was written by Vincent Balat <vincent.balat@pps.jussieu.fr>. This manual page was written by Samuel Mimram <smimram@debian.org>, for the Debian project (but may be used by others). 2006-09-14 OCSIGEN(1)
All times are GMT -4. The time now is 02:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy