Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getwidth(3c) [sunos man page]

getwidth(3C)						   Standard C Library Functions 					      getwidth(3C)

NAME
getwidth - get codeset information SYNOPSIS
#include <euc.h> #include <getwidth.h> void getwidth(eucwidth_t *ptr); DESCRIPTION
The getwidth() function reads the character class table for the current locale to get information on the supplementary codesets. getwidth() sets this information into the struct eucwidth_t. This struct is defined in <euc.h> and has the following members: short int _eucw1,_eucw2,_eucw3; short int _scrw1,_scrw2,_scrw3; short int _pcw; char _multibyte; Codeset width values for supplementary codesets 1, 2, and 3 are set in _eucw1, _eucw2, and _eucw3, respectively. Screen width values for supplementary codesets 1, 2, and 3 are set in _scrw1, _scrw2, and _scrw3, respectively. The width of Extended Unix Code (EUC) Process Code is set in _pcw. The _multibyte entry is set to 1 if multibyte characters are used, and set to 0 if only single-byte characters are used. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |MT-Level |MT-Safe with exceptions | +-----------------------------+-----------------------------+ SEE ALSO
euclen(3C), setlocale(3C), attributes(5) NOTES
The getwidth() function can be used safely in a multithreaded application, as long as setlocale(3C) is not being called to change the locale. The getwidth() function will only work with EUC locales. SunOS 5.10 20 Dec 1996 getwidth(3C)

Check Out this Related Man Page

euclen(3C)						   Standard C Library Functions 						euclen(3C)

NAME
euclen, euccol, eucscol - get byte length and display width of EUC characters SYNOPSIS
#include <euc.h> int euclen(const unsigned char *s); int euccol(const unsigned char *s); int eucscol(const unsigned char *str); DESCRIPTION
The euclen() function returns the length in bytes of the Extended Unix Code (EUC) character pointed to by s, including single-shift charac- ters, if present. The euccol() function returns the screen column width of the EUC character pointed to by s. The eucscol() function returns the screen column width of the EUC string pointed to by str. For the euclen() and euccol(), functions, s points to the first byte of the character. This byte is examined to determine its codeset. The character type table for the current locale is used for codeset byte length and display width information. USAGE
These functions will work only with EUC locales. These functions can be used safely in multithreaded applications, as long as setlocale(3C) is not called to change the locale. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------------------------------------+ |ATTRIBUTE TYPE ATTRIBUTE VALUE | |MT-Level MT-Safe with exceptions | +-----------------------------------------------------------+ SEE ALSO
getwidth(3C), setlocale(3C), attributes(5) SunOS 5.11 20 Dec 1996 euclen(3C)

3 More Discussions You Might Find Interesting

1. Programming

[ C++ ] Drawing Program.

I made a program that prints dots and lines in a Page. So far that's all i could come up with. When i try to print the lines and the dots it just prints consecutive points,I want it to print the points & lines in the page's coordinates. I have been stuck for a long time now. Please Help. ... (12 Replies)
Discussion started by: Max_Payne
12 Replies

2. Programming

Printing Dots in specific Locations in the Console ?

Point.h #pragma once #include <iostream> using namespace std; class Point { private: int x; int y; public: Point(void); Point( int x, int y ); Point( const Point &xPoint ); ~Point(void); (0 Replies)
Discussion started by: Max_Payne
0 Replies

3. Programming

Writing a Targa file not working from an array

Hello, I wrote code that generates an image that writes its contents to a Targa file. Due to modifications that I wish to do, I decided to copy the value of each pixel as they are calculated to a dynamically allocated array before write it to a file. The problem is now that I all I see is a big... (2 Replies)
Discussion started by: colt
2 Replies

Featured Tech Videos