Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 9, 2022 16:50
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/1f8d081c476cb24a14f62cb2e6c039f7 to your computer and use it in GitHub Desktop.
Save parzibyte/1f8d081c476cb24a14f62cb2e6c039f7 to your computer and use it in GitHub Desktop.
int transferirDinero(struct NodoDeCliente *nodo, char *cuentaOrigen, char *cuentaDestino, double cantidad)
{
int retiroExitoso = retirarDinero(nodo, cuentaOrigen, cantidad);
if (retiroExitoso)
{
depositarDinero(nodo, cuentaDestino, cantidad);
return 1;
}
else
{
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment