Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pregunta sobre listdb_create #1

Closed
ivanvladimir opened this issue Jun 24, 2015 · 1 comment
Closed

Pregunta sobre listdb_create #1

ivanvladimir opened this issue Jun 24, 2015 · 1 comment

Comments

@ivanvladimir
Copy link
Collaborator

listdb_create recibe dos parámetros: size and dim, pero no usa dim... ya siempre lo asigna a 0, está bien eso?

ListDB listdb_create(uint size, uint dim)
{
ListDB listdb;
listdb.size = size;
listdb.dim = 0;
listdb.lists = (List *) calloc(size, sizeof(List));
return listdb;
}

@gibranfp
Copy link
Owner

No, está mal, ya lo corregí. ¡Gracias!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants