Quote:
Originally Posted by mlibre
pretty
Code:
set_task(CMD_MSG_DELAY, "Task__Message", TASK_ID, _, _, "b")
PHP Code:
set_task(CMD_MSG_DELAY, "Task__Message", TASK_ID, .flags="b")
&
PHP Code:
while(fgets(fop, szDatas, charsmax(szDatas))
|
On set_task it is fine as it is. That’s not more efficient, maybe more readable, depending on who’s reading. That’s just a style, if you like it sure, but it’s pointless.
On file this is the proper way, feop is faster and cheaper. It compensates the null result you’ll get from fgets. Unless you have a really big file feop is the right choice. Anyway this is not a big deal, won’t have any impact.
__________________