php 警告:赋值丢弃了指针目标类型的限定,传递参数1从指针目标类型中丢弃限定符...

这意味着你将一个const参数传递给一个使用非const参数的函数,这是因为明显的原因可能是坏的.

huffenc可能不需要一个非const参数,所以应该使用一个const char *.但是,您对main的定义是非标准的.

C99标准第5.1.2.2.1节(程序启动)规定:

The function called at program startup is named main. The implementation declares no

prototype for this function. It shall be defined with a return type of int and with no

parameters:

int main(void) { /* ... */ }

or with two parameters (referred to here as argc and argv,though any names may be

used,as they are local to the function in which they are declared):

int main(int argc,char *argv[]) { /* ... */ }

or equivalent;9) or in some other implementation-defined manner.

继续说…

…The parameters argc and argv and the strings pointed to by the argv array shall be modifiable by the program,and retain their last-stored values between program startup and program termination.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值