04-23-2009
Please state Operating System.
Last edited by methyl; 04-23-2009 at 11:53 AM..
Reason: Withdrawn. Depends on O/S.
10 More Discussions You Might Find Interesting
1. HP-UX
find the largest file in whole system (7 Replies)
Discussion started by: megh
7 Replies
2. Solaris
Hello all,
can someone help on how can i check if all file system were mounted during reboot?
I know that we have first to look on /etc/vfstab; the containing of this one should be mounted during boot of system, and after with : df -k we can see if mentioned file system on vfstab were... (3 Replies)
Discussion started by: vitchi
3 Replies
3. Shell Programming and Scripting
What is the correct command for finding and displaying the largest file on the system?
I don't know how to specify "largest" with "find", and pipe that to something that will display the file contents. Or should I be using cat, more, less, ls, or something else? (4 Replies)
Discussion started by: raidkridley
4 Replies
4. Shell Programming and Scripting
Hi All,
I want to find the percentage occupied by the directory in the file system.
Say, i have the file system
/home/arun/work
under this file system i have the directories
/home/arun/work/yesterday
/home/arun/work/today
/home/arun/work/tomorrow
The size of the file system is... (5 Replies)
Discussion started by: Arunprasad
5 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it
please help me out
any help would be appreciated (6 Replies)
Discussion started by: lokeshpashine
6 Replies
6. Shell Programming and Scripting
Good evening everybody,
I have to find the user owner of the most recently file in the system
How can I do? :confused: (5 Replies)
Discussion started by: Guccio
5 Replies
7. Shell Programming and Scripting
Hi guys,
I want to translate the device name from the command "iostat" to file system name in order to check IO problems of DB's data files.
What is the way to do it?
Thanks in advance,
Nir (2 Replies)
Discussion started by: nir_s
2 Replies
8. UNIX for Dummies Questions & Answers
please some one help me to find the block size of ocfs2 file system in rehat linux 4 (4 Replies)
Discussion started by: robo
4 Replies
9. UNIX for Dummies Questions & Answers
Please help. My file system is 100%, I can't seem to find what is taking so much space. The total hard drive space is 150Gig free but I got nothing now.
I did to this to find the big file but it's taking so much time. Is there any other way?
du -ah / | more
find ./ -size +200M... (3 Replies)
Discussion started by: samnyc
3 Replies
10. AIX
Hi ,
Could you please tell me how to find the following on AIX?
1.Command to find file system details?
2.What are all the files exist under a specific directory along with their sizes?
In general we use,
du -sh * | grep M under a directory which returns files having size of MB,... (18 Replies)
Discussion started by: Maddy123
18 Replies
WCTOMB(P) POSIX Programmer's Manual WCTOMB(P)
NAME
wctomb - convert a wide-character code to a character
SYNOPSIS
#include <stdlib.h>
int wctomb(char *s, wchar_t wchar);
DESCRIPTION
The wctomb() function shall determine the number of bytes needed to represent the character corresponding to the wide-character code whose
value is wchar (including any change in the shift state). It shall store the character representation (possibly multiple bytes and any spe-
cial bytes to change shift state) in the array object pointed to by s (if s is not a null pointer). At most {MB_CUR_MAX} bytes shall be
stored. If wchar is 0, a null byte shall be stored, preceded by any shift sequence needed to restore the initial shift state, and wctomb()
shall be left in the initial shift state.
The behavior of this function is affected by the LC_CTYPE category of the current locale. For a state-dependent encoding, this function
shall be placed into its initial state by a call for which its character pointer argument, s, is a null pointer. Subsequent calls with s
as other than a null pointer shall cause the internal state of the function to be altered as necessary. A call with s as a null pointer
shall cause this function to return a non-zero value if encodings have state dependency, and 0 otherwise. Changing the LC_CTYPE category
causes the shift state of this function to be unspecified.
The wctomb() function need not be reentrant. A function that is not required to be reentrant is not required to be thread-safe.
The implementation shall behave as if no function defined in this volume of IEEE Std 1003.1-2001 calls wctomb().
RETURN VALUE
If s is a null pointer, wctomb() shall return a non-zero or 0 value, if character encodings, respectively, do or do not have state-depen-
dent encodings. If s is not a null pointer, wctomb() shall return -1 if the value of wchar does not correspond to a valid character, or
return the number of bytes that constitute the character corresponding to the value of wchar.
In no case shall the value returned be greater than the value of the {MB_CUR_MAX} macro.
ERRORS
No errors are defined.
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
mblen() , mbtowc() , mbstowcs() , wcstombs() , the Base Definitions volume of IEEE Std 1003.1-2001, <stdlib.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE
/The Open Group 2003 WCTOMB(P)