Hello to all members.<br><br>I have a couple questions about handling to things within OpenSIPS modules.<br><br>* What is the right way to initialize/assing the len field of a str struct? When checking code, I have seen that in some places it is initialized with strlen of s field, in others with strlen+1, and in others strlen-1.<br>
Besides, what is the recommended way to initialize at declaration a str struct: Direct assignation, or using the STR_INIT macro?<br><br>* What is the right code for non error conditions in module functions? Should it be zero or nonzero value?<br>
<br>Thanks in advancefor your attention, and I apologize for the &quot;newbie&quot; question.<br><br>Best regards.<br clear="all"><br>-- <br>Sergio Gutiérrez<br>