Tilbage til slide -- Tastaturgenvej: 'u'        næste -- Tastaturgenvej: 'n'          io/scanf1.c - Illustration af directives med almindelige tegn.Lektion 13 - slide 22 : 43
Program 1

/* Illustrates match of 'ordinary' characters in the control string */

#include <stdio.h>

int main (int argc, char *argv []){

  int scan_res;
  double double_number = 0;

  printf("Enter a dollar char followed by a double\n");
  scan_res = scanf("$%lf", &double_number);
  printf("Number read: %f\n", double_number);
  printf("scanf returned: %d\n", scan_res);
}