~ubuntu-branches/ubuntu/trusty/wmsysmon/trusty

« back to all changes in this revision

Viewing changes to meminfotest/test.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2003-08-12 02:24:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20030812022456-hm4l6b0xxgecw49a
Tags: 0.7.7-3
* Manpage fixed (closes: #93475, #165944).
* Bumped up Standards-Version (no changes).
* Removed -1 diff from source package.
* Modified description to shut up lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include        <stdio.h>
2
 
#include        <dirent.h>
3
 
 
4
 
 
5
 
main(void)
6
 
{
7
 
        char            buf[128];
8
 
        FILE            *fp;
9
 
        int             i = 0;
10
 
 
11
 
        fp = fopen("/proc/meminfo", "r");
12
 
 
13
 
        while(i < 1000) {
14
 
                freopen("/proc/meminfo", "r", fp);
15
 
                while(fgets(buf, 128, fp));
16
 
                i++;
17
 
        }
18
 
}