source: branches/libc-0.6/testcase/div.c@ 2800

Last change on this file since 2800 was 381, checked in by bird, 22 years ago

div() testcase from Platon.

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 143 bytes
Line 
1#include <stdlib.h>
2
3int main()
4{
5 div_t lv = {0,0};
6 lv = div(6,2);
7 printf(" 6/2 -> q=%d r=%d\n", lv.quot, lv.rem);
8 return 0;
9}
Note: See TracBrowser for help on using the repository browser.