Skip to content

Commit

Permalink
move function
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqiny committed Jun 15, 2019
1 parent ee088ce commit 0bcc7e7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions linux-perf/sample1/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ struct PrimeNumberNode
struct PrimeNumberNode *next;
};

PrimeNumberNode *number(int);

int main(int argc, char *argv[])
{
number(argv[0]);
printf("\n");

number(argv[0]);
printf("\n");
}

int wasteTime(int factor)
{
Expand Down Expand Up @@ -57,3 +48,14 @@ PrimeNumberNode *number(int input)

return head;
}


int main(int argc, char *argv[])
{
number(argv[0]);
printf("\n");

number(argv[0]);
printf("\n");
}

0 comments on commit 0bcc7e7

Please sign in to comment.