腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(6922)
视频
沙龙
3
回答
关于errno和
strerror
()
、
、
、
{ errno,
strerror
(errno));} 由于函数参数的计算顺序在C中未指定,因此在调用printf()时,如果首先对
strerror
()的调用(调用)而失败,那么在实际打印行时,errno 是否会对其他东西进行计算呢或者,errno甚至在评估
strerror
()之前就会被复制到printf()的激活记
浏览 19
提问于2022-07-29
得票数 3
1
回答
仅来自分配的数组值的回声值
、
请检查以下代码,并告诉我当我的代码条件满足时,当每个错误都收到一个值时,我如何回显$error[]数组。或者有没有什么短期的解决方案?我希望在满足条件时回显错误消息。最好的速记解决方案是什么? if (empty($_POST['old_pass']) || empty($_POST['new_pass'])) { $error[] = '<div class="alert alert-danger">Error
浏览 1
提问于2016-09-15
得票数 0
1
回答
strerror
_r实例
、
、
、
为了保证代码线程的安全,我必须使用
strerror
_r,但我很难使用它。在下面的代码中,出现了错误号22 (ret_setschedparam为22)。如何打印错误号22的描述,即“无效参数”,使用char *
strerror
_r(int errnum, char *buf, size_t buflen= 0) { printf("Errore numero (pthread_attr_setschedparam): %s\n",
strerror<
浏览 5
提问于2020-07-26
得票数 0
回答已采纳
1
回答
dlsym()返回符号的奇怪地址
、
、
直接打印函数地址:
strerror
=0x8049ec0,
strerror
_r=0xb76544e0dlsym(rtldDefault, "
strerror
"); ==>
strerror
=0x8049ec0dlsym((void*)0, "
s
浏览 3
提问于2012-08-10
得票数 0
回答已采纳
1
回答
如何在定义两个源时防止GNU特定的函数
、
、
、
、
通常,我使用符合XSI的函数,但是当我添加#define _GNU_SOURCE时,它会自动产生以下错误,因为它更喜欢使用GNU的
strerror
_r。initialization makes integer from pointer without a cast [-Werror=int-conversion]#define _GNU_SOURCE #define _DEFAULT_SOURCE
浏览 3
提问于2019-03-28
得票数 3
回答已采纳
3
回答
在c#代码中获取错误号时的编译错误
我试图使用
strerror
_r从套接字函数中获取错误,但是代码没有编译,我得到的错误是invlaid conversion from char * to an int。result==0) printf("\n connect success "); else if(result==-1) err =
strerror
_r
浏览 10
提问于2013-10-11
得票数 0
回答已采纳
1
回答
同名函数的不同版本
、
、
来自人类3的错误: /* XSI-compliant */ char *
strerror
_r
浏览 4
提问于2013-08-22
得票数 1
回答已采纳
1
回答
创建自定义截击错误
、
是否可以创建具有自定义消息和错误的自定义截击错误对象。
浏览 6
提问于2016-10-24
得票数 0
3
回答
在一个printf()中使用两次不同值的
strerror
()会触发Windows上的错误
、
、
---------\n");printf("
strerror
(2)=(%s), ptr=(%p)\n",
strerror
(2),
strerror
(2)); printf("---------- print together [BUG] ----------\n");printf(&q
浏览 24
提问于2022-03-30
得票数 3
1
回答
指向intptr_t和back的转换指针
、
、
我正在试验使用_Generic来制作一个线程安全的
strerror
函数,它不知道使用
strerror
_r的XSI或GNU变体。
strerror
.c#include <string.h> staticinline char *
strerror
_r_gnu(int errnum, char *buf, size_t buflen
浏览 0
提问于2018-08-09
得票数 3
回答已采纳
2
回答
windows OS下
strerror
_r的替代应用编程接口
、
、
、
、
有没有其他的winapi和
strerror
_r(..)做同样的事情?
浏览 5
提问于2012-07-30
得票数 5
回答已采纳
2
回答
如果$不是x或y
、
、
=='ABC') { $
strError
.= 'Wrong';}$validation = ($_POST["txtValidcode"]);我尝试过:或者,!=,if($validation!=='ABC‘|| $validation!
浏览 5
提问于2019-02-22
得票数 0
1
回答
如何通过ODBC获取详细的PostgreSQL访问错误?
、
、
、
当使用ODBC-Interface-Driver时,从命令行或像PG-Admin这样的客户端运行查询时,有没有办法获得PostgreSQL显示的详细错误消息?
浏览 1
提问于2009-07-06
得票数 0
回答已采纳
1
回答
strerror
_r不起作用
、
#include <string.h> char buf [30]; std :: cout << "
strerror
(0): " <<
浏览 0
提问于2013-05-05
得票数 5
回答已采纳
1
回答
为什么连接字符串只能在开发机器上工作?
、
、
、
myCon.CloseExit Sub Dim ErrorCollection As VariantDim
strError
As String
strError
= ""For Each ErrLoop In ErrorCollection
浏览 3
提问于2018-10-14
得票数 0
2
回答
%m格式说明符的含义是什么?
、
、
、
、
此代码的输出输出为“Success”。
浏览 0
提问于2013-12-14
得票数 52
回答已采纳
2
回答
为什么在gdb中跳过了一些语句?
更新0x000000000041bea2 <ngx_
strerror
_init<ngx_
strerror
_init+15>: mov %r13,-0x18(%rsp) 0x000000000041beb1 <ngx_
strerror
_init+20>: mov<ngx_
strerror
_init+30>:
浏览 2
提问于2011-06-04
得票数 0
1
回答
我如何定义我自己的errno值?
、
在开发模块(设备驱动程序、中间件等)时这将在内核空间中运行,我们希望有一些方法来捕获操作可能失败的原因。可以定义我自己的errno值吗?
浏览 0
提问于2008-09-24
得票数 0
回答已采纳
3
回答
在SunOS上编译时
strerror
_r导致错误(C编程)
、
、
我得到了以下警告:test.c:412: warning: implicit declaration of function `
strerror
_r' symbol in file
strerror
_r
浏览 1
提问于2009-12-13
得票数 0
回答已采纳
2
回答
为什么这段C++代码不能工作?
、
、
、
the string throw
strerror
= 0) throw
strerror
(WSAGetLastError()); // this is being thrown but not caught?
浏览 2
提问于2010-06-20
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
C 错误处理
CUDA编程的错误处理
深入了解进程间通信:System V信号量+共享内存
公司用什么软件监控电脑?PHP 在网络监控系统中的角色解析
多进程编程中父进程如何回收僵尸进程
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券