Sponsored Content
Operating Systems AIX Custom libraries possible on AIX 4.2 ? Post 302402686 by Browser_ice on Wednesday 10th of March 2010 10:52:09 AM
Old 03-10-2010
I used ZZ=$(test "aa" "bb") because I want to set ZZ to the result of that function using those 2 options/parms.

However, when I echo the content of $ZZ, it is empty.

In my testz library function, I added an echo on both $1 and $2 to see if the "aa" and "bb" were passed on. They are.

test.sh
#!/bin/ksh
. testlib.sh
ZZ=$(testz "aa" "bb")
echo "$ZZ"
exit 0
testlib.sh
testz () {
echo $1
echo $2
return "$1$2"
}
Also, lets say I want to return more then one value back (ex: 10 03 2010) without putting them into quotes, is it possible ?
 

10 More Discussions You Might Find Interesting

1. Programming

shared libraries

I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies

2. Programming

C Libraries??

I can not locate package sys/mkdev.h on HP-UX or Linux. Is it a special package or something? (9 Replies)
Discussion started by: laila63
9 Replies

3. IP Networking

Libraries

How is Libnet and libpcap are useful in sending a packet through DLL layer and sniff network layer? and how sinffers are used to track ip adresses provided Mac adresses? (1 Reply)
Discussion started by: netsavy
1 Replies

4. AIX

memory problem in AIX shared libraries

Hi All, I'm facing the following issue with my shared libraries in AIX. memory related calls such as memset, memcpy, malloc etc are failing miserably. there is something wrong with stack/memory which i can't guess. i've used the following flags to build my libraray: ld -G... (0 Replies)
Discussion started by: abhinav05252
0 Replies

5. UNIX for Dummies Questions & Answers

libraries

I am slowly ploughing my way through the list of links to on-line tutorials you provided to newbies. I for one am grateful for such a comprehensive list, so first of all thank you for that. What i cannot seem to find, is information on C++ libraries: The two links on libraries in your list... (0 Replies)
Discussion started by: pil888
0 Replies

6. Shell Programming and Scripting

How to use two different libraries?

Hello, I need to use two different libraries like /usr/local/bin/expect and /usr/bin/ksh at the same script. Is it possible? (4 Replies)
Discussion started by: fozay
4 Replies

7. AIX

AIX custom package install query

I have created a .bff package for an app to tbe installed on AIX servers across regions. I am pretty new to the AIX mode of packaging using mkinstallp but I have been able to get the same done. I installed the same on the server in which i created the package and the application was deployed... (9 Replies)
Discussion started by: jobbyjoseph
9 Replies

8. Programming

I want to know some c libraries

I'm a rookie to C and i'm looking for some libraries to learn,something likes the C++ STL or Boost ,does any1 can tell me some of them?Thanks a lot:) Eric (3 Replies)
Discussion started by: homeboy
3 Replies

9. AIX

Problem with AIX: shared libraries aren't loaded

Hello guys, I have a trouble when running an application in AIX, I've compiled and the LIBRARY_PATH seems ok, but I get the following message: rtld: 0712-001 Symbol __pthread was referenced from module main_app(), but a runtime definition of the symbol was not found ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies

10. AIX

Custom AIX Prompt

In my .profile, my prompt is set like this: set -o vi PS1=`logname`@`hostname -s`:'$PWD>' Is there a way to show what the history number would be of the command I'm typing in the prompt? For example, I frequently run commands then run 'history' to pull up the history number of a command... (2 Replies)
Discussion started by: ptrotter
2 Replies
expackf(3alleg4)						  Allegro manual						  expackf(3alleg4)

NAME
expackf - Using custom PACKFILE vtables. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example expackf DESCRIPTION
This program demonstrates the use of the packfile functions, with some simple tests. The first test uses the standard packfile functions to transfer a bitmap file into a block of memory, then reads the bitmap out of the block of memory, using a custom packfile vtable. The second test reads in a bitmap with another custom packfile vtable, which uses libc's file stream functions. The third test demonstrates seeking with a custom vtable. The fourth test reads two bitmaps, and dumps them back into a single file, using a custom vtable again. Tools SEE ALSO
ASSERT(3alleg4), BITMAP(3alleg4), END_OF_MAIN(3alleg4), PACKFILE(3alleg4), PACKFILE_VTABLE(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), alert(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), destroy_bit- map(3alleg4), file_size_ex(3alleg4), font(3alleg4), install_keyboard(3alleg4), key(3alleg4), load_bmp_pf(3alleg4), load_pcx(3alleg4), load_pcx_pf(3alleg4), load_tga_pf(3alleg4), pack_fclose(3alleg4), pack_fopen(3alleg4), pack_fopen_vtable(3alleg4), pack_fread(3alleg4), pack_fseek(3alleg4), readkey(3alleg4), save_bmp_pf(3alleg4), save_tga_pf(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), text_height(3alleg4), textprintf_centre_ex(3alleg4), textprintf_ex(3alleg4) Allegro version 4.4.2 expackf(3alleg4)
All times are GMT -4. The time now is 02:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy