Why return a negative errno? (e.g. return -EIO)

前端 未结 0 680
闹比i
闹比i 2021-02-11 15:54

Another simple example:

if (wpa_s->mlme.ssid_len == 0)
    return -EINVAL;

Why the unary minus? Is this (usually) done for functions that re

相关标签:
回答
  • 消灭零回复
提交回复
热议问题