Sponsored Content
Top Forums Programming Need help in character pointer Post 302237252 by jagan_kalluri on Wednesday 17th of September 2008 09:41:32 AM
Old 09-17-2008
Hi,

Thanks for the reply...........



I tried with the below given code and could not see any integer number stored at num. seems some more changes needed...

Thx,
jagan
 

10 More Discussions You Might Find Interesting

1. Programming

pointer

void main() { int a={1,2,3,4,5,6,7,8,9,10}; int *p=a; int *q=&a; cout<<q-p+1<<endl; } The output is 10, how? if we give cout<<q it will print the address, value won't print.... if we give cout<<p it will print the address, value won't print.... p has the base addr; q... (1 Reply)
Discussion started by: sarwan
1 Replies

2. Programming

why we never delete a pointer twice

can u tell me the reson that why we should not delete a pointer twice.? if we delete ponter twice then what happen and why this happen Regards, Amit (2 Replies)
Discussion started by: amitpansuria
2 Replies

3. Programming

far pointer

what is far pointer in C (1 Reply)
Discussion started by: useless79
1 Replies

4. Programming

pass a pointer-to-pointer, or return a pointer?

If one wants to get a start address of a array or a string or a block of memory via a function, there are at least two methods to achieve it: (1) one is to pass a pointer-to-pointer parameter, like: int my_malloc(int size, char **pmem) { *pmem=(char *)malloc(size); if(*pmem==NULL)... (11 Replies)
Discussion started by: aaronwong
11 Replies

5. Programming

matrix pointer

Can anyone tell me what the following statements do? float (*tab); tab=(float (*)) calloc(MAXCLASS, (MAXCLASS+1)*sizeof(float)); (3 Replies)
Discussion started by: littleboyblu
3 Replies

6. Programming

C dynamic pointer

Hi, Can anyone tell me how i can declare and allocate dynamically an array of pointers to structured type?? Is declaration something like this:? struct_name ** array; (1 Reply)
Discussion started by: littleboyblu
1 Replies

7. Programming

Pointer to pointers

Hi guys, I'm trying to understand pointers in C and made a simple example and I've problems with It. Can someone help? #include <stdio.h> #include <stdlib.h> #include <assert.h> int f1(char **str_); int main(int argc, char **argv) { char *str = NULL; f1(&str); ... (3 Replies)
Discussion started by: pharaoh
3 Replies

8. Programming

pointer problem

Does anyone know? int x = 1; int *p = &++x; //ok ! int *q = &x++; //gives an error :O why the first pointer is ok but the second is an error? (13 Replies)
Discussion started by: nishrestha
13 Replies

9. Programming

Pointer confusion

Here are two programs that pass a pointer to a variable but behave differently. Shouldnt the i in second program be 0 after the function call? #include<stdio.h> void changeI(int *i) { *i = 10; } int main(void) { int i=5; printf("%d before\n", i); changeI(&i); printf("%d... (1 Reply)
Discussion started by: dragonpoint
1 Replies

10. Programming

Character pointer to Character array

how to copy content of character pointer to character array in c programming.. char *num; char name=num; (1 Reply)
Discussion started by: zinat
1 Replies
xcb_xvmc_list_surface_types(3)					   XCB Requests 				    xcb_xvmc_list_surface_types(3)

NAME
xcb_xvmc_list_surface_types - SYNOPSIS
#include <xcb/xvmc.h> Request function xcb_xvmc_list_surface_types_cookie_t xcb_xvmc_list_surface_types(xcb_connection_t *conn, xcb_xv_port_t port_id); Reply datastructure typedef struct xcb_xvmc_list_surface_types_reply_t { uint8_t response_type; uint8_t pad0; uint16_t sequence; uint32_t length; uint32_t num; uint8_t pad1[20]; } xcb_xvmc_list_surface_types_reply_t; Reply function xcb_xvmc_list_surface_types_reply_t *xcb_xvmc_list_surface_types_reply(xcb_connection_t *conn, xcb_xvmc_list_surface_types_cookie_t cookie, xcb_generic_error_t **e); Reply accessors xcb_xvmc_surface_info_t *xcb_xvmc_list_surface_types_surfaces(const xcb_xvmc_list_surface_types_request_t *reply); int xcb_xvmc_list_surface_types_surfaces_length(const xcb_xvmc_list_surface_types_reply_t *reply); xcb_xvmc_surface_info_iterator_t xcb_xvmc_list_surface_types_surfaces_iterator(const xcb_xvmc_list_surface_types_reply_t *reply); REQUEST ARGUMENTS
conn The XCB connection to X11. port_id TODO: NOT YET DOCUMENTED. REPLY FIELDS
response_type The type of this reply, in this case XCB_XVMC_LIST_SURFACE_TYPES. This field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. sequence The sequence number of the last request processed by the X11 server. length The length of the reply, in words (a word is 4 bytes). num TODO: NOT YET DOCUMENTED. DESCRIPTION
RETURN VALUE
Returns an xcb_xvmc_list_surface_types_cookie_t. Errors have to be handled when calling the reply function xcb_xvmc_list_surface_types_re- ply. If you want to handle errors in the event loop instead, use xcb_xvmc_list_surface_types_unchecked. See xcb-requests(3) for details. ERRORS
This request does never generate any errors. SEE ALSO
AUTHOR
Generated from xvmc.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. XCB
2014-06-10 xcb_xvmc_list_surface_types(3)
All times are GMT -4. The time now is 10:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy