Changeset beb9336 in mainline for uspace/app/testwrit/testwrit.c


Ignore:
Timestamp:
2012-08-24T14:07:52Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
041ab64
Parents:
bd29f9c9 (diff), db81577 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/testwrit/testwrit.c

    rbd29f9c9 rbeb9336  
    3131 */
    3232
    33 
    3433#include <stdio.h>
    3534#include <unistd.h>
    3635
    37 #define BUF_SIZE 1024
     36#define BUF_SIZE  1024
    3837
    39 int main(int argc, char **argv)
     38int main(int argc, char *argv[])
    4039{
    41 
    4240        char buffer[BUF_SIZE];
    4341        uint64_t iterations, i;
     
    4745        /* Prepare some example data */
    4846        memset(buffer, 0xcafebabe, BUF_SIZE);
    49 
     47       
    5048        if (argc != 3) {
    5149                printf("syntax: testwrit <iterations> <target file>\n");
    5250                return 1;
    5351        }
    54 
     52       
    5553        char *end;
    5654        iterations = strtoul(argv[1], &end, 10);
    5755        file_name = argv[2];
    58 
     56       
    5957        /* Open target file */
    6058        file = fopen(file_name, "a");
     
    7068       
    7169        fclose(file);
    72 
     70       
    7371        return 0;
    7472}
    75 
    7673
    7774/**
Note: See TracChangeset for help on using the changeset viewer.