Sponsored Content
Full Discussion: Rotate an array by 2 places
Top Forums Shell Programming and Scripting Rotate an array by 2 places Post 302422577 by ansar basha.k on Tuesday 18th of May 2010 11:28:50 PM
Old 05-19-2010
Scotton thank you so much for your reply....i need this program in C programming language not in unix.Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

HP-UX lp spooling places

Does anybody know if HP-UX uses any other directories besides /var/spool/lp/request to spool print jobs? I checked the man pages, and it only mentions /var/spool/lp in general. I was just wondering if anyone knew of some other place it might possibly use. thanks in advance for any help! (2 Replies)
Discussion started by: doeboy
2 Replies

2. UNIX for Dummies Questions & Answers

deciaml places

Hello All, Can anyone please tell me how do i define the variable as decimal. Below is my script. After division i get a whole number where as i want to see the decimal places also.. TABLEAVG=`expr ${TABLECHARS}/${TABLELINES} | bc` EG: if TABLECHARS= 1280 and TABLELINES=44 the O/P is... (6 Replies)
Discussion started by: OSD
6 Replies

3. UNIX for Advanced & Expert Users

log rotate

hi , what is the meaning of log rotate? how do i rotate /var/adm/wtmps log and gzip it? (6 Replies)
Discussion started by: cromohawk
6 Replies

4. Programming

Rotate an array

i have an array a={1,2,3,4,5} the output should be a= {4,5,1,2,3} please help me writin this program in c. (10 Replies)
Discussion started by: pgmfourms
10 Replies

5. Shell Programming and Scripting

Decimal places

i need to multiplay a number with 1.00.. so that the output should contain two decimal places at end.. for example... 236 * 1.00 = 236.00 245.8 * 1.00 = 245.80 but when i perform multiplication it shows output as. 236 245.8 can anyone help me to get the actual output of... (11 Replies)
Discussion started by: arunmanas
11 Replies

6. Programming

Badly places ()'s on C

I dont know why this Linux would give me badly placed () error all the time for this; #include <stdio.h> int main() { register int num=0 ; while ((num < 5)) ++num; printf("Pass %d \n", num) ; return 0 ; } can anyone help me please? (11 Replies)
Discussion started by: sizzler786
11 Replies

7. HP-UX

How To Rotate A File in HP-UX?

I need to rotate a file in HP-UX of a application. I´ve tried to do a task in the cron with a script (with sed and ed commands) but it was a successfully option (the application continued writing the file :( ) LINEAS_OUT=$(wc -l < $RMISTDOUT) LINEAS_FIN=1,expr $LINEAS_OUT - 100p sed... (19 Replies)
Discussion started by: werkraft
19 Replies

8. Shell Programming and Scripting

Log rotate

Hi, I have below script in logrotate.d to rotate logs. logs are not rotating after the file grow to 1k, do you have any idea? Is it because of it just only 1K? Please let me know if the below syntax is in correct. # more trotate /sourcepath/*/servers/*/logs/*log... (2 Replies)
Discussion started by: lpprasad321
2 Replies

9. UNIX for Dummies Questions & Answers

Logs do not rotate

My problem: Both access and error logs do not rotate any more and get really large. They are located here: /srv/www/+vHost name here+/logs/ Configuration seems to be here: /etc/logrotate.conf => looks OK, including "size 10M" to avoid large files (/etc/logrotate.d => is empty) manually... (4 Replies)
Discussion started by: floko
4 Replies

10. Shell Programming and Scripting

Sum the fields with 6 decimal places - getting only 2 decimal places as output

I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies
RPC_XDR(3)						   BSD Library Functions Manual 						RPC_XDR(3)

NAME
xdr_accepted_reply, xdr_authsys_parms, xdr_callhdr, xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg -- XDR library routines for remote procedure calls LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <rpc/rpc.h> bool_t xdr_accepted_reply(XDR *xdrs, struct accepted_reply *ar); bool_t xdr_authsys_parms(XDR *xdrs, struct authsys_parms *aupp); bool_t xdr_callhdr(XDR *xdrs, struct rpc_msg *chdr); bool_t xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg); bool_t xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap); bool_t xdr_rejected_reply(XDR *xdrs, struct rejected_reply *rr); bool_t xdr_replymsg(XDR *xdrs, struct rpc_msg *rmsg); DESCRIPTION
These routines are used for describing the RPC messages in XDR language. They should normally be used by those who do not want to use the RPC package directly. These routines return TRUE if they succeed, FALSE otherwise. Routines See rpc(3) for the definition of the XDR data structure. xdr_accepted_reply() Used to translate between RPC reply messages and their external representation. It includes the status of the RPC call in the XDR language format. In the case of success, it also includes the call results. xdr_authsys_parms() Used for describing UNIX operating system credentials. It includes machine-name, uid, gid list, etc. xdr_callhdr() Used for describing RPC call header messages. It encodes the static part of the call message header in the XDR language format. It includes information such as transaction ID, RPC version number, program and version number. xdr_callmsg() Used for describing RPC call messages. This includes all the RPC call information such as transaction ID, RPC version number, program number, version number, authentication information, etc. This is normally used by servers to determine information about the client RPC call. xdr_opaque_auth() Used for describing RPC opaque authentication information messages. xdr_rejected_reply() Used for describing RPC reply messages. It encodes the rejected RPC message in the XDR language format. The message could be rejected either because of version number mis-match or because of authentication errors. xdr_replymsg() Used for describing RPC reply messages. It translates between the RPC reply message and its external representation. This reply could be either an acceptance, rejection or NULL. SEE ALSO
rpc(3), xdr(3) BSD
May 3, 1993 BSD
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy