[kgtp] r976 committed - Update hotest.c

  • From: kgtp@xxxxxxxxxxxxxx
  • To: kgtp@xxxxxxxxxxxxx
  • Date: Mon, 19 Mar 2012 02:16:59 +0000

Revision: 976
Author:   teawater
Date:     Sun Mar 18 19:16:17 2012
Log:      Update hotest.c

http://code.google.com/p/kgtp/source/detail?r=976

Modified:
 /bak/hotest.c

=======================================
--- /bak/hotest.c       Sun Mar 18 09:00:53 2012
+++ /bak/hotest.c       Sun Mar 18 19:16:17 2012
@@ -1,25 +1,20 @@
-#include <sys/types.h>
 #include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <sys/types.h>
 #include <unistd.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <stdint.h>

 int
 main(int argc,char *argv[],char *envp[])
 {
-       int     i, j;
+       unsigned long   i, j;

        printf("%d\n", getpid());
+
        for (i = 1; i < 99999999999; i++) {
                j = i / 13;
-               j = i - 13;
-               j = i + 13;
-               j = i * 13;
+               j = j - 13;
+               j = j * 13;
+               j = j + 13;
        }

-       return 0;
-}
+       return j;
+}

Other related posts:

  • » [kgtp] r976 committed - Update hotest.c - kgtp