Skip to content

Commit

Permalink
Update to new coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
anachrocomputer committed May 4, 2019
1 parent 7f065d1 commit 01c567d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions hexagon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
#include <stdio.h>
#include "turtle.h"

int main (int argc, const char *argv[])
int main(int argc, const char *argv[])
{
int i;
double size = 80.0; /* 80mm sides */
const double size = 80.0; /* 80mm sides */

turtle (DEV_HPGL, SIZ_A4, ORI_LAND, FLG_NONE);
turtle(DEV_HPGL, SIZ_A4, ORI_LAND, FLG_NONE);

colour (BLACK);
colour(BLACK);

pen (UP);
forward (size);
turn (120.0);
pen (DOWN);
pen(UP);
forward(size);
turn(120.0);
pen(DOWN);

for (i = 0; i < 6; i++) {
forward (size);
turn (60.0);
forward(size);
turn(60.0);
}

show ();
show();

return (0);
}

0 comments on commit 01c567d

Please sign in to comment.