分裂错误 [英] segementation fault
问题描述
我的程序似乎工作没有太大问题,直到我使用
宽字符函数wchar_t wcscpy(wchar_t * to,wchar_t * from)和
int wctob( win_t * c)。
只是一个想法:宽字符,嗯,宽 - 你分配了
足够的空间来处理宽度?
didier2309写道:
我的程序似乎正在工作没问题,直到我使用
宽字符函数wchar_t wcscpy(wchar_t * to,wchar_t * from)和
int wctob(win_t * c)。
定义似乎工作正常。
为什么它不再似乎正在工作?
第42行有错误。
-
+ ------------------- ------ + -------------------- + ---------------------- ------- +
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody / at\spamcop.net | www.fptech.com | #include< std_disclaimer.h> |
+ ------------------------- + -------------- ------ + ----------------------------- +
不要邮件给我:< mailto:Th ************* @ gmail.com>
didier2309写道:我的程序似乎工作没有太大问题,直到我使用
宽字符函数wchar_t wcscpy(wchar_t * to,wchar_t * from)和
int wctob(win_t * c )。
你在第42行有一个错误。换句话说,我们应该如何看待
你做错了什么我们看不到你的代码?
-
Flash Gordon,生活在有趣的时代。
网站 - http://home.flash-gordon.me.uk/
comp.lang.c发布指南和介绍:
http:/ /clc-wiki.net/wiki/Intro_to_clc
My Program seemed to be working without much problem until I used the
wide character functions wchar_t wcscpy(wchar_t *to, wchar_t *from) and
int wctob(win_t *c).
解决方案Just a thought: wide characters are, well, wide - did you allocate
enough space to handle the wideness?
didier2309 wrote:
My Program seemed to be working without much problem until I used the
wide character functions wchar_t wcscpy(wchar_t *to, wchar_t *from) and
int wctob(win_t *c).
Define "seemed to be working".
Why does it no longer "seem to be working"?
You have an error on line 42.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don''t e-mail me at: <mailto:Th*************@gmail.com>
didier2309 wrote:My Program seemed to be working without much problem until I used the
wide character functions wchar_t wcscpy(wchar_t *to, wchar_t *from) and
int wctob(win_t *c).
You have an error on line 42. In other words, how are we supposed to see
what you have done wrong if we can''t see your code?
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
这篇关于分裂错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!