segementation fault

D

didier2309

I'm using the opensuse operating system and this function is part of
the libc standard library. and lacc_num is of type wchar_t
 
J

Jordan Abel

You've had some funny characters there; I replaced them with blanks.

Pasted from vim, i had things on to show where tabs were, and i didn't
notice because i also edited the post in vim
 
K

Keith Thompson

didier2309 said:
I'm using the opensuse operating system and this function is part of
the libc standard library. and lacc_num is of type wchar_t

What function?

It's very difficult to understand what you're talking about if you don't
provide context. Read <http://cfaj.freeshell.org/google/>.

I think you're talking about the "wcpcpy" function. That function is
not defined by the C standard, so we can't help you with it here.
(The "libc standard library" contains a number of functions that
aren't specified by the C language standard.)

Here's what you need to do (I've told you this already):

Write a small, complete, compilable self-contained program that
illustrates whatever problem you're having. I suggest writing it in
pure C, not C++, unless you actually need to use some C++ features. A
complete program *must* include a main() function, and I must be able
to copy-and-paste it from your article and compile and run it on my
own system.

What you've done so far is post an incomplete code fragment. Telling
us that lacc_num is of type wchar_t is not enough; we don't know where
it's declared, how it's initialized, or anything else.

If the program depends on a system-specific function like "wcpcpy",
post it to a system-specific newsgroup; in your case, probably one
with "linux" in its name.

A few useful links:

http://www.ungerhu.com/jxh/clc.welcome.txt
http://benpfaff.org/writings/clc/off-topic.html
http://cfaj.freeshell.org/google/
http://clc-wiki.net/wiki/Introduction_to_comp.lang.c
http://www.catb.org/~esr/faqs/smart-questions.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,517
Latest member
TashaLzw39

Latest Threads

Top