Diff for /dietlibc/t.c between versions 1.16 and 1.17

version 1.16, 2001/02/11 14:47:52 version 1.17, 2001/02/12 14:33:47
Line 12 Line 12
 #include <arpa/inet.h>  #include <arpa/inet.h>
 #include <sys/sem.h>  #include <sys/sem.h>
 #include <sys/shm.h>  #include <sys/shm.h>
   #include <math.h>
   
   #if 0
 int compint(const void *a,const void *b) {  int compint(const void *a,const void *b) {
 /*  printf("comparing %d with %d\n",*(int*)a,*(int*)b); */  /*  printf("comparing %d with %d\n",*(int*)a,*(int*)b); */
   return (*(int*)a-*(int*)b);    return (*(int*)a-*(int*)b);
Line 31  static unsigned int seed=1; Line 33  static unsigned int seed=1;
 static int rand() {  static int rand() {
   return ((seed = seed * 1103515245 + 12345) % ((unsigned int)RAND_MAX + 1));    return ((seed = seed * 1103515245 + 12345) % ((unsigned int)RAND_MAX + 1));
 }  }
   #endif
   
 int main(int argc,char *argv[]) {  int main(int argc,char *argv[]) {
     double d=0.0;
     long long t=0x12345678ABCDEF01;
     d/=0.0;
     printf("%d %llx\n",__isnan(d),t,*(long long*)&d);
   #if 0
   int i,j;    int i,j;
   long a,b,c;    long a,b,c;
   int *res;    int *res;
Line 55  int main(int argc,char *argv[]) { Line 63  int main(int argc,char *argv[]) {
   if (*res!=j)    if (*res!=j)
     printf("besearch does not work, returned %p (%d) instead of %p (%d)\n",res,res?*res:-1,array+LOOKFOR,j);      printf("besearch does not work, returned %p (%d) instead of %p (%d)\n",res,res?*res:-1,array+LOOKFOR,j);
 /*  printf("array={%d,%d,%d,%d,%d}\n",array[0],array[1],array[2],array[3],array[4]); */  /*  printf("array={%d,%d,%d,%d,%d}\n",array[0],array[1],array[2],array[3],array[4]); */
   #endif
 #if 0  #if 0
   struct in_addr duh;    struct in_addr duh;
   printf("%d\n",inet_aton(argv[1]?argv[1]:"10.0.0.1",&duh));    printf("%d\n",inet_aton(argv[1]?argv[1]:"10.0.0.1",&duh));

Removed from v.1.16  
changed lines
  Added in v.1.17


LinuxTV legacy CVS <linuxtv.org/cvs>