Hi, Can anyone help me figure out the problem I'm having with a function call?
I have a header file, which sets an enum:
typedef enum {INFO, WARNING, FATAL} Levels;
int log_event (Levels, char *fmt, ...);
..then the function is called this way:
log_event(INFO, "Message text");
... (6 Replies)
I have a function check_ok in my abc.sh. which return me 1 or 0 . I want to call this fuction through other shell script. this shell also send two parameter to calling function.
Can you please tell me how. I am very new in unix.
#!/bin/bash
date_equal()
{
sqlplus -silent... (4 Replies)
hello,
when i call function inside awk traitement it doesn't work, i don't have error execution but i don't get result and if i call the function outside awk traitement it work well..
there's something special in awk call function??
here is the example :
awk -F "," '{ {first=$1; sec=$2;... (3 Replies)
Hello,
I have a problem with package and name space.
require "/Mehran/DSGateEngineLib/general.pl";
use strict;
sub System_Status_Main_Service_Status_Intrusion_Prevention
{
my %idpstatus;
my @result;
&General_ReadHash("/var/dsg/idp/settings",\%idpstatus);
#print... (4 Replies)
Hi foiks
i am unable to find what is wrong in my code
mu functionality is to exit from shell when i give 99 but it is not calling function ext
Could you please correct me.
read option
if ;
then
ext
else
echo "out"
fi
function ext
{
echo "tested 99 and exit... (12 Replies)
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)
Hi all,
Does anyone know if it possible to append a parameter to a function name?
Something like the following:
function tnsrec_${SERVICE_NAME} {
code..
}
Any ideas? (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
2. Relevant commands, code, scripts, algorithms:
#! /bin/ksh
v="ORG_ID"
... (2 Replies)
Discussion started by: sujitdas2104
2 Replies
LEARN ABOUT HPUX
dtsearchhighlight
DtSearchHighlight(library call) DtSearchHighlight(library call)
NAME
DtSearchHighlight -- Generate DtSrHitwords table for highlighting DtSearch document
SYNOPSIS
#include <Dt/Search.h>
intDtSearchHighlight(
char *dbname,
char *cleartext,
DtSrHitword **hitwptr,
long *hitwcount,
int search_type,
char *stems,
int stemcount);
DESCRIPTION
The DtSearchHighlight function generates an array of offsets and lengths (DtSrHitword) of parsed linguistic terms (stems) in the passed
document cleartext to enable a browser to highlight the words in the text as appropriate for its user interface.
ARGUMENTS
dbname Specifies which database is to be searched. It is any one of the database name strings returned from DtSearchInit or
DtSearchReinit. If dbname is NULL, the first database name string is used.
cleartext Pointer to a zero terminated C string containing the document text to be highlighted. Usually, but not necessarily, this value is
returned from DtSearchRetrieve.
hitwptr and hitwcount
The hitwords array will be stored in hitwptr, the address of a DtSrHitword pointer. The array is dynamically allocated by this
function and remains valid until the next call to this function. The size of the hitwords array will be stored in hitwcount.
search_type
Specifies the search_type of the DtSearchQuery that generated the stems array. It must be zero, 'P', 'W', or 'S'. If zero is
passed, the search_type of the last call to DtSearchQuery is assumed.
stems and stemcount
stems and stemcount are optional; they can be NULL and zero respectively. However, if either is specified, both must be speci-
fied. If specified, they refer to the stems array that was returned from the previous call to DtSearchQuery that ultimately
resulted in the cleartext argument.
If these arguments are not passed, the stems array from the most recent call to DtSearchQuery is assumed.
RETURN VALUE
This function returns DtSrOK, as well as a DtSrHitword table, when the table generation is completely successful.
Any other return code signifies failure and user messages on the MessageList explain why.
Any API function can also return DtSrREINIT and the return codes for fatal engine errors at any time.
SEE ALSO DtSrAPI(3), DtSearchQuery(3), DtSearchRetrieve(3)
DtSearchHighlight(library call)