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

« back to all changes in this revision

Viewing changes to tests/unistd/swab.c

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <unistd.h>
 
3
 
 
4
int main() {
 
5
  char src[] = "abcdefg";
 
6
  char dst[10] = {0};
 
7
  swab(src, dst, 5);
 
8
 
 
9
  printf("before: %s\n", src);
 
10
  printf("after: %s\n", dst);
 
11
 
 
12
  return 0;
 
13
}