Logo Search packages:      
Sourcecode: c2n version File versions  Download package

static enum pulse p_read ( void   )  [static]

Read a pulse from standard input

the read pulse

Definition at line 556 of file c2n.c.

References Long, Medium, Pause, and Short.

Referenced by main().

  int c = getchar ();
  switch (c) {
  case EOF:
  case 'A':
    return Pause;
  case 'B':
    return Short;
  case 'C':
    return Medium;
  case 'D':
    return Long;
  fprintf (stderr, "unrecognized character 0x%02x in pulse input stream\n", c);
  return Pause;

Generated by  Doxygen 1.6.0   Back to index