@Code
A few things -1 or ~0 is true in the C standard, retuning -1 on false, is not correct for the C standard. I suggest use “bool” inssted of “int” for true / false statement.
I think look better with for loop,
idcmp(l->void_data, search_data) != 0)?
strcmp is 0 is equal, or its smaller or greater, so != can be thats -1 or ~0 in thats case its not false? Again it make more sense to use true or false.. we are now kept guessing if the code is correct or not..
If your coming from basic, that might extremely inefficient interpreter, you might need to worry about number chars on line, or number of tokens (depending on language).
But when we are talking about a compiled language, code you execute looks nothing like what you wrote.
Readability its fare more important, so using enums, defines, using the correct data type, this what you should do. Last edited by NutsAboutAmiga on 23-Jun-2026 at 02:45 PM. Last edited by NutsAboutAmiga on 23-Jun-2026 at 02:04 PM.
_________________ http://lifeofliveforit.blogspot.no/ Facebook::LiveForIt Software for AmigaOS |