Skip to content

Instantly share code, notes, and snippets.

@dovilemik
Created November 6, 2013 19:02
Show Gist options
  • Save dovilemik/7342095 to your computer and use it in GitHub Desktop.
Save dovilemik/7342095 to your computer and use it in GitHub Desktop.
void Get (struct KNYGA a[], int *i)
{
int t;
for(t=0; t<*i; t++)
{
strcpy(a[t].pavadinimas, a[t+1].pavadinimas);
strcpy(a[t].autorius, a[t+1].autorius);
a[t].puslapiu = a[t+1].puslapiu;
a[t].metai = a[t+1].metai;
a[t].versta = a[t+1].versta;
a[t].stilius = a[t+1].stilius;
}
*i--;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment