Thread: Please Explain me few terms that i have listed in here.

  1. #1
    Registered User
    Join Date
    Jan 2008

    Please Explain me few terms that i have listed in here.

    Kindly explain me the function of wchar_t ,size_t ,memcpy() i have read many times the community members using this but i never realised what they are for?If anybody could explain me the syntax and use of it or could link me to some page which explain's its usage i will be very thankful

  2. #2
    Registered User
    Join Date
    Jan 2008
    Also explain me the function of realloc()

  3. #3
    Join Date
    Oct 2007
    Inside my computer
    wchar_t is the data type for unicode, at least within Windows environment. If you don't know what unicode is, perhaps you should read up about it on wikipedia or such...
    size_t is a data type used by the C++ Standard Library. It's generally a "reserved" type returned by some functions and shouldn't be cast, if possible.
    memcpy is a function that copies n bytes of memory from one location to another. Generally avoided in C++ since it's more a C function.
    realloc takes an existing allocation from malloc and resizes it to the new specified size. If it can't expand the current memory block, it allocates a new region of the specified size, copies data over and frees the old one. Is not to be used with new/delete. Avoid if possible. Use only with malloc/free.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    wchar_t is the standard "wide character" data type. What that means depends on the compiler.
    size_t is primarily the result type of the sizeof operator. It is also used for various other size values in the CRT.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. One Easy" C " Question. Please Solve and Explain.
    By RahulDhanpat in forum C Programming
    Replies: 18
    Last Post: 03-24-2008, 01:39 PM
  2. Can someone please explain strings to me?
    By themoffster in forum C Programming
    Replies: 17
    Last Post: 08-28-2003, 04:22 AM
  3. Can someone explain to me what this code means
    By Shadow12345 in forum C++ Programming
    Replies: 3
    Last Post: 12-22-2002, 12:36 PM
  4. Replies: 4
    Last Post: 11-19-2002, 09:18 PM
  5. Can someone explain "extern" to me?
    By valar_king in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2001, 12:22 AM