Sponsored Content
Top Forums Programming Using pointers to struct members as args to functions Post 302542851 by uiop44 on Thursday 28th of July 2011 10:19:09 PM
Old 07-28-2011
JG: Would you believe I also omitted a typdef that did just that? For the kelly example, I took the struct out of a context where I still don't fully understand the context. Hence the omissions.

Cheers for the helpful insights.
 

9 More Discussions You Might Find Interesting

1. Programming

Pointer to a struct (with pointers) *** glibc detected *** double free

I am using a structure defined as follows struct gene_square { double *x; double *y; };I have class, with a member function which is a pointer of this type: gene_square* m_Genes;I am allocating memory in the constructors like this: m_Genes = new gene_square; for (ii=0;... (1 Reply)
Discussion started by: jatoo
1 Replies

2. Homework & Coursework Questions

C++ struct pointers & functions

Hi All, My latest assignment (practice not coursework!) is to write prototype interactive exam/test console application. I've used structs to store the question information (not sure if this was the best way to do it?) and I have the following code that outputs each question and it's possible... (0 Replies)
Discussion started by: pondlife
0 Replies

3. Programming

functions that manipulate void pointers

I have two or more linked lists that have the same names for their "next". For example, struct server_t { sockaddr_in * sin; server_t * next_; } struct player_t { char name; player_t * next_; } How can I get a function to take in either type and manipulate the pointers? I... (3 Replies)
Discussion started by: pyramation
3 Replies

4. UNIX for Dummies Questions & Answers

How to access a struct within a struct?

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)
Discussion started by: unbelievable21
1 Replies

5. Homework & Coursework Questions

Passing pointers to struct

Hi, i'm trying to copy a struct into a binary file using the unix instruction write, so i declare and fill the struct "superbloque" in one function "initSB" and then i pass the pointer to another function called bwrite (for block write) which calls write. The problem is that i call the function... (2 Replies)
Discussion started by: ignatius3
2 Replies

6. Programming

Passing an instance of struct to functions in other src files

I am trying to work out the best syntax for a relatively simple operation. The goal is to declare an instance of a struct and pass it around to be populated and have the data manipulated. There is an extra wrinkle in that the functions are in different src files. The main is simple, #include... (5 Replies)
Discussion started by: LMHmedchem
5 Replies

7. Programming

Storing C++-struct in file - problem when adding new item in struct

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)
Discussion started by: Powerponken
2 Replies

8. Programming

Dynamically enumerating the members of a C++ struct

In C++ there is a struct with the following structure: typedef struct myStruct { string s_date; float fA; float fB; float fC; ..... float fZ; } myData; After some computations on the values of the struct members are inserted into a database table: myData... (4 Replies)
Discussion started by: figaro
4 Replies

9. Shell Programming and Scripting

Store args passed in array but not the first 2 args

Store args passed in array but not the first 2 args. # bash declare -a arr=("$@") s=$(IFS=, eval 'echo "${arr}"') echo "$s" output: sh array.sh 1 2 3 4 5 6 1,2,3,4,5,6 Desired output: sh array.sh 1 2 3 4 5 6 3,4,5,6 (2 Replies)
Discussion started by: iaav
2 Replies
KRB5_RCACHE(3)						   BSD Library Functions Manual 					    KRB5_RCACHE(3)

NAME
krb5_rcache, krb5_rc_close, krb5_rc_default, krb5_rc_default_name, krb5_rc_default_type, krb5_rc_destroy, krb5_rc_expunge, krb5_rc_get_lifespan, krb5_rc_get_name, krb5_rc_get_type, krb5_rc_initialize, krb5_rc_recover, krb5_rc_resolve, krb5_rc_resolve_full, krb5_rc_resolve_type, krb5_rc_store, krb5_get_server_rcache -- Kerberos 5 replay cache LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5) SYNOPSIS
#include <krb5.h> struct krb5_rcache; krb5_error_code krb5_rc_close(krb5_context context, krb5_rcache id); krb5_error_code krb5_rc_default(krb5_context context, krb5_rcache *id); const char * krb5_rc_default_name(krb5_context context); const char * krb5_rc_default_type(krb5_context context); krb5_error_code krb5_rc_destroy(krb5_context context, krb5_rcache id); krb5_error_code krb5_rc_expunge(krb5_context context, krb5_rcache id); krb5_error_code krb5_rc_get_lifespan(krb5_context context, krb5_rcache id, krb5_deltat *auth_lifespan); const char* krb5_rc_get_name(krb5_context context, krb5_rcache id); const char* krb5_rc_get_type(krb5_context context, krb5_rcache id); krb5_error_code krb5_rc_initialize(krb5_context context, krb5_rcache id, krb5_deltat auth_lifespan); krb5_error_code krb5_rc_recover(krb5_context context, krb5_rcache id); krb5_error_code krb5_rc_resolve(krb5_context context, krb5_rcache id, const char *name); krb5_error_code krb5_rc_resolve_full(krb5_context context, krb5_rcache *id, const char *string_name); krb5_error_code krb5_rc_resolve_type(krb5_context context, krb5_rcache *id, const char *type); krb5_error_code krb5_rc_store(krb5_context context, krb5_rcache id, krb5_donot_replay *rep); krb5_error_code krb5_get_server_rcache(krb5_context context, const krb5_data *piece, krb5_rcache *id); DESCRIPTION
The krb5_rcache structure holds a storage element that is used for data manipulation. The structure contains no public accessible elements. krb5_rc_initialize() Creates the reply cache id and sets it lifespan to auth_lifespan. If the cache already exists, the content is destroyed. SEE ALSO
krb5(3), krb5_data(3), kerberos(8) HEIMDAL
May 1, 2006 HEIMDAL
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy