Skip to content

Instantly share code, notes, and snippets.

@Neppord
Created August 12, 2012 16:16
Show Gist options
  • Save Neppord/3332577 to your computer and use it in GitHub Desktop.
Save Neppord/3332577 to your computer and use it in GitHub Desktop.
c refactor
int main ()
{
do
{
if(strlen(perstyp[k].namn)==0) break; //räknar ut antal sparade
k++;
}
while(1);
}
int main ()
{
while(strlen(perstyp[k].namn) != 0)
{
k += 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment