Hi All ,
I am trying to run a shell script through a JCL . The requirement is I have a gdg base name and I need to create a script that will just check if the latest version of that gdg has data or not . If it doesnt have data RC 4 need to be returned . One more thing which is bothering me is i... (3 Replies)
Hi All ,
I am trying to run a shell script through a JCL . The requirement is I have a gdg base name and I need to create a script that will just check if the latest version of that gdg has data or not . If it doesnt have data RC 4 need to be returned . One more thing which is bothering me is i... (1 Reply)
Hi Gurus,
I'm using HP-UX B.11.23 operating system.
I've been trying to extract this log info based on the current date and month, but was having some issues as the date column which on the 4th column has a comma and the 5th column has a dot tied to it.
Here is the output from my shut... (5 Replies)
helllo there.. I really need your help..
I have my sample program like this..
<?php
// db connection
$db = "mds_reports";
if($connect = mysql_connect("172.16.8.32", "mds_reports", "password"))
$connect = mysql_select_db($db);
else... (2 Replies)
Hi everyone,
Almost everything is in the title!
Which partitions do you keep?
Which partitions do you reformat, while doing a clean install?
Personaly, I never format /var and /home partitions when I update to latest linux distribution.
It has been working quite ok up to now, but I was... (3 Replies)
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
Good day for us.
I want to ask what is the manner to count total of spesific character or string in 10 latest line. I mean from Latestline - 10 line until Latest line.
Example :
If the latest line of my file is 455th line, I just want to count total of spesific string from line 446th to 455th.... (5 Replies)
Discussion started by: weslyarfan
5 Replies
LEARN ABOUT DEBIAN
explain_strdup_or_die
explain_strdup_or_die(3) Library Functions Manual explain_strdup_or_die(3)NAME
explain_strdup_or_die - duplicate a string and report errors
SYNOPSIS
#include <libexplain/strdup.h>
char *explain_strdup_or_die(const char *data);
char *explain_strdup_on_error(const char *data);
DESCRIPTION
The explain_strdup_or_die function is used to call the strdup(3) system call. On failure an explanation will be printed to stderr, obtained
from the explain_strdup(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_strdup_on_error function is used to call the strdup(3) system call. On failure an explanation will be printed to stderr,
obtained from the explain_strdup(3) function, but still returns to the caller.
data The data, exactly as to be passed to the strdup(3) system call.
RETURN VALUE
The explain_strdup_or_die function only returns on success, see strdup(3) for more information. On failure, prints an explanation and
exits, it does not return.
The explain_strdup_on_error function always returns the value return by the wrapped strdup(3) system call.
EXAMPLE
The explain_strdup_or_die function is intended to be used in a fashion similar to the following example:
char *result = explain_strdup_or_die(data);
SEE ALSO strdup(3)
duplicate a string
explain_strdup(3)
explain strdup(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_strdup_or_die(3)