09-05-2008
IF this is exactly what you want - no - manual is your only option. But since that has almost no real world use - are you looking to instrument your code somehow? profiling?
You can also literally write a single generic wrapper that calls each function that takes a function pointer as an argument:
1. hello()
2. function pointer call to selected funtion
3. foo()
then in your code call generic(function1); generic(function5); etc.
Last edited by jim mcnamara; 09-05-2008 at 08:26 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to capture the exit status of a parent shell
in a subshell.
I am using the trap .. Exit command in the subshell
I cant use the export command in the parent shell to
to export a variable with the exit status to the subshell.
I would have tooooo many parent shells to change.
... (2 Replies)
Discussion started by: Bob Bannon
2 Replies
2. Shell Programming and Scripting
Hello friends,
Kindly help me in developing a script that asks user to enter a value and will wait for 5 seconds for the feedback. If there is no answer from the user the script will perform exit or it will continue doing something else
Ex: If yu have a multi OS system i believe while... (3 Replies)
Discussion started by: frozensmilz
3 Replies
3. Shell Programming and Scripting
Hi all,
My kshell code is not working, when I use a function to return something. But when I use the same function as without returning any values, it is working. Pls help me here.
Code1 :
func1 () {
y=`echo $x | grep XXX| cut -f 2 -d ' '`
if ; then
exit 100
... (2 Replies)
Discussion started by: poova
2 Replies
4. Shell Programming and Scripting
Hi All,
I have a scenario where I am executing some child shell scripts in background (using &)through a master parent script.
Is there a way I can capture the exit status of each individual child script after the execution is completed. (2 Replies)
Discussion started by: paragkalra
2 Replies
5. Shell Programming and Scripting
Hi,
I just want to exit from function if some condition doesnt meet then control should go back to main program and start running from where it left..
When i used "exit" inside the function, its simply exited from entire script and it didnt run anymore.. Any idea how to do this..
Thanks... (3 Replies)
Discussion started by: nram_krishna@ya
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
Is there a way to exit from a subcommand, which is a function in my example below?
#!/bin/ksh
function exitFunction {
if ]; then
echo "success"
elif ]; then
echo "failed"
exit 1 # the exit problem
fi
exit 0
}
... (2 Replies)
Discussion started by: chstr_14
2 Replies
7. Shell Programming and Scripting
Below is my script that is function properly per my conditions but I am facing one problem here that is when one function fails then Iy should not check other functions but it calls the other function too So anyone can help me how could i achieve this?
iNOUT i AM GIVING TO THE... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies
8. Shell Programming and Scripting
Hi,
I have a sub function called pressEnter within my perl menu script which basically means that the script will await an interaction from the user before moving on.
Unfortunately when the script goes into pressEnter it just hangs (even if you press enter!!).
Any ideas on what could be... (4 Replies)
Discussion started by: chris01010
4 Replies
9. Shell Programming and Scripting
Hi
I am pretty confused in returning and capturing multiple values
i have defined a function which should return values "total, difference"
i have used as
#!/usr/bin/ksh
calc()
{
total=$1+$2
echo "$total"
diff=$2-$1
echo "$diff"
}
I have invoked this function as
calc 5 8
Now i... (2 Replies)
Discussion started by: Priya Amaresh
2 Replies
10. Shell Programming and Scripting
Hi All,
Good Day, seeking for your assistance on how to not perform my 2nd, 3rd,4th etc.. function if my 1st function is in else condition.
#Body
function1()
{
if
then
echo "exist"
else
echo "not exist"
}
#if not exist in function1 my all other function will not proceed.... (4 Replies)
Discussion started by: meister29
4 Replies
LEARN ABOUT MOJAVE
glgetvertexattribpointerv
GLGETVERTEXATTRIBPOI(3G) OpenGL 3.3 GLGETVERTEXATTRIBPOI(3G)
NAME
glGetVertexAttribPointerv - return the address of the specified generic vertex attribute pointer
C SPECIFICATION
void glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid **pointer);
PARAMETERS
index
Specifies the generic vertex attribute parameter to be returned.
pname
Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER.
pointer
Returns the pointer value.
DESCRIPTION
glGetVertexAttribPointerv returns pointer information. index is the generic vertex attribute to be queried, pname is a symbolic constant
indicating the pointer to be returned, and params is a pointer to a location in which to place the returned data.
The pointer returned is a byte offset into the data store of the buffer object that was bound to the GL_ARRAY_BUFFER target (see
glBindBuffer()) when the desired pointer was previously specified.
NOTES
The state returned is retrieved from the currently bound vertex array object.
The initial value for each pointer is 0.
ERRORS
GL_INVALID_OPERATION is generated if no vertex array object is currently bound.
GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX_ATTRIBS.
GL_INVALID_ENUM is generated if pname is not an accepted value.
ASSOCIATED GETS
glGet() with argument GL_MAX_VERTEX_ATTRIBS
SEE ALSO
glGetVertexAttrib(), glVertexAttribPointer()
COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and
conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
OpenGL 3.3 03/08/2011 GLGETVERTEXATTRIBPOI(3G)