Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 30, 2020 23:55
Show Gist options
  • Save parzibyte/a8386d7a988e8381b40c1a0286851907 to your computer and use it in GitHub Desktop.
Save parzibyte/a8386d7a988e8381b40c1a0286851907 to your computer and use it in GitHub Desktop.
// Intercambiar
memcpy(&temporal, &personas[indiceActual], sizeof(struct persona));
memcpy(&personas[indiceActual], &personas[indiceSiguienteElemento], sizeof(struct persona));
memcpy(&personas[indiceSiguienteElemento], &temporal, sizeof(struct persona));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment