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

前端 未结 0 430
我寻月下人不归
我寻月下人不归 2021-02-11 16:18

Another simple example:

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

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

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