Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 10, 2022 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4f276946f94f1c9fc3531ac2bf826c23 to your computer and use it in GitHub Desktop.
Save parzibyte/4f276946f94f1c9fc3531ac2bf826c23 to your computer and use it in GitHub Desktop.
void marcarEntradaVehiculo(struct LugarEstacionamiento lugares[CANTIDAD_CARROS + CANTIDAD_MOTOS], int indice, char placa[MAXIMA_LONGITUD_CADENA], int horas)
{
lugares[indice].estado = OCUPADO;
strncpy(lugares[indice].placa, placa, MAXIMA_LONGITUD_CADENA);
lugares[indice].entrada = time(NULL);
lugares[indice].horas = horas;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment