Hi
We are using a code generator for initializing structures with the #define macro. Compiling it with the GCC 2.8.1 (with -ansi) it OK. But when we are using the SUN C 5.0 compiler it screams.
Following is a code sample:
#include <stdlib.h>
#include <stdio.h>
typedef struct TEST3 {... (4 Replies)
in my .c file i have a struct atop of the program defined as follows:
#define MAX 10
int curtab;
static struct tab {
int count;
int use;
} tab;
with the initial function following it like so:
int tab_create(int init_count)
{
int i;
for(i=0; i < MAX; i++)
{... (1 Reply)
hi there,
can somebody give me a definition for daemons, or example what are they !!
and what the use for?
i've done some research and all what i found is /etc/...
or /usr/bin/...
and i haven't quietly got the concept.
any ideas !!
Thanks. (5 Replies)
Could someone please direct me to a link that gives the definitions for each of the letters from the results of the $- environment variable? It would be nice to know what shell options each of the letters represents, but I am specifically looking for the shell option for 'c' (lowercase c). Thank... (12 Replies)
Can someone tell me how to do this?
Just a thought that entered my mind when learning about structs.
First thought was:
struct one
{
struct two;
}
struct two
{
three;
}
one->two->three
would this be how you would access "three"? (1 Reply)
in C i am using this code to get the c time or a time or m time
struct dirent *dir;
struct stat my;
stat(what, &my);
thetime = my.st_ctime;
How can i check if i have permission to check the c time of the file? (1 Reply)
Hi,
I have received an application that stores some properties in a file. The existing struct looks like this:
struct TData
{
UINT uSizeIncludingStrings;
// copy of Telnet data struct
UINT uSize;
// basic properties:
TCHAR szHost; //defined in Sshconfig
UINT iPortNr;
TCHAR... (2 Replies)
A byte is the smallest unit of storage which can be accessed in a computer's memory- either in RAM or ROM.It also holds exactly 8 bits.But its old view one byte was sufficient to hold one 8 bit character.Modern days especially on .NET or international versions of Win 32, 16 bits is needed.
... (2 Replies)
Hi all,
I'm bit new to the advanced bash shell scripting.
When I'm looking at some of the existing code in my organization, got confused with a few variable definings.
For ex:
var1={1:-30}
var2="abc def ghi"
var3={xyz:-$var2}
In above, 1st and last lines are confusing me.... (4 Replies)
Discussion started by: raghu.iv85
4 Replies
LEARN ABOUT REDHAT
xcmsciexyz
XcmsColor(3X11) XLIB FUNCTIONS XcmsColor(3X11)NAME
XcmsColor, XcmsRGB, XcmsRGBi, XcmsCIEXYZ, XcmsCIEuvY, XcmsCIExyY, XcmsCIELab, XcmsCIELuv, XcmsTekHVC, XcmsPad - Xcms color struture
STRUCTURES
The structure for XcmsColor contains:
typedef unsigned long XcmsColorFormat;
typedef struct {
union {
XcmsRGB RGB;
XcmsRGBi RGBi;
XcmsCIEXYZ CIEXYZ;
XcmsCIEuvY CIEuvY;
XcmsCIExyY CIExyY;
XcmsCIELab CIELab;
XcmsCIELuv CIELuv;
XcmsTekHVC TekHVC;
XcmsPad Pad;
} spec;
unsigned long pixel;
XcmsColorFormat format;
} XcmsColor;
typedef double XcmsFloat;
typedef struct {
unsigned short red;
unsigned short green;
unsigned short blue;
} XcmsRGB;
typedef struct {
XcmsFloat red;
XcmsFloat green;
XcmsFloat blue;
} XcmsRGBi;
typedef struct {
XcmsFloat X;
XcmsFloat Y;
XcmsFloat Z;
} XcmsCIEXYZ;
typedef struct {
XcmsFloat u_prime;
XcmsFloat v_prime;
XcmsFloat Y;
} XcmsCIEuvY;
typedef struct {
XcmsFloat x;
XcmsFloat y;
XcmsFloat Y;
} XcmsCIExyY;
typedef struct {
XcmsFloat L_star;
XcmsFloat a_star;
XcmsFloat b_star;
} XcmsCIELab;
typedef struct {
XcmsFloat L_star;
XcmsFloat u_star;
XcmsFloat v_star;
} XcmsCIELuv;
typedef struct {
XcmsFloat H;
XcmsFloat V;
XcmsFloat C;
} XcmsTekHVC;
typedef struct {
XcmsFloat pad0;
XcmsFloat pad1;
XcmsFloat pad2;
XcmsFloat pad3;
} XcmsPad;
DESCRIPTION
The XcmsColor structure contains a union of substructures, each supporting color specification encoding for a particular color space.
SEE ALSO XcmsAllocColor(3X11), XcmsStoreColor(3X11), XcmsConvertColors(3X11),
Xlib - C Language X Interface
X Version 11 Release 6.6 XcmsColor(3X11)