~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/core/test_sscanf_5.in

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "stdio.h"
 
2
 
 
3
static const char *colors[] = {"  c black", ". c #001100", "X c #111100"};
 
4
 
 
5
int main() {
 
6
  unsigned char code;
 
7
  char color[32];
 
8
  int rcode;
 
9
  for (int i = 0; i < 3; i++) {
 
10
    rcode = sscanf(colors[i], "%c c %s", &code, color);
 
11
    printf("%i, %c, %s\n", rcode, code, color);
 
12
  }
 
13
}