-
Notifications
You must be signed in to change notification settings - Fork 25
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
C functions should return int or void #119
Comments
@paskino not sure what you mean exactly? C functions currently return either zero or a pointer to an array. What do you mean by |
It's a good practice to return int function(int a, float* b){
...
if (something goes wrong)
return 1;
...
if (something else goes wrong)
return 2;
return 0;
} If you want to return an array it'd be better to have it passed in the arguments. |
ok it makes sense. Will try to incorporate. |
int
would be better so that basic checks could be implementedThe text was updated successfully, but these errors were encountered: