05-04-2010
The problem is that I personally do not want to program C.
I need to adjust a program that is written in C by a colleague that left the company.
With minimum effort, if possible.
The program that is being executed actually only needs to return 0, 1 or -1, so that is quite simple.
If I could program C, I would not use a system command at all.
It is basically a C program calling a Perl program, which seems stupid.
Anyway, it is working now and serves its purpose.
Perhaps later I will have a go at it and integrate the Perl program into the C program.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am presently stuck in a csv file.
INPUT CSV
baseball,NULL,8798765,Most played
baseball,NULL,8928192,Most played
baseball,NULL,5678945,Most played
cricket,NOTNULL,125782,Usually played
cricket,NOTNULL,678921,Usually played
EXPECTED OUTPUT CSV
... (7 Replies)
Discussion started by: scripter12
7 Replies
2. Shell Programming and Scripting
Hi,
I have a comma (,) delimited file, in which few fields are enclosed with in double quotes " ". I have to print the records in the file which donot have expected number of field with the line number.
File1
====
name,desgnation,doj,project #header#... (7 Replies)
Discussion started by: machomaddy
7 Replies
3. Shell Programming and Scripting
Hi All,
I am in middle of one script. I want output in the form of xls file.
There are 4 fields - user name, email Id, full name, date of birth. I want these details to get in seperate columns.
But, i am getting it in the single cell and as like a paragraph.:mad:
Please suggest me some... (8 Replies)
Discussion started by: Agupte
8 Replies
4. Shell Programming and Scripting
Hi
I have written below script to get the data in table form.
#!/bin/sh
echo "File Name\tType"
for i in *;
do
echo "$i\t\c"
if ; then
echo "directory"
elif ; then
echo "symbolic link"
elif ; then
echo "file"
else
echo "unknown"
fi
donehowever i am getting output in different way... (3 Replies)
Discussion started by: scriptor
3 Replies
5. Shell Programming and Scripting
lyang001@lyang001-OptiPlex-9010:~$ service --status-all |grep dbus
acpid
acpi-support
alsa-restore
alsa-store
anacron
apport
atd
avahi-daemon
bluetooth
cgroup-lite
console-setup
cron
cups
dbus
dmesg
dns-clean
failsafe-x
... (1 Reply)
Discussion started by: yanglei_fage
1 Replies
6. Shell Programming and Scripting
How to capture system() function output in awk variable and the print that awk variable..... (8 Replies)
Discussion started by: bharat1211
8 Replies
7. Shell Programming and Scripting
Good Moring,
I am currently reading about awk in a manual and following the examples using the oratab file.
My system is SOLARIS 10
I think I am getting strange behavior judging by what the book says to do and what I am getting with my little program.
Here is my program:
grep -v oratab |... (4 Replies)
Discussion started by: bdby
4 Replies
8. Shell Programming and Scripting
#cat /tmp/input
old_array old_dev new_dev new_array
0577 008AB 01744 0125
0577 008AC 01745 0125
0577 008AD 005C8 0125
0577 008AE 005C9 0125
0577 008AF 005CA 0125
0577 008B0 005CB 0125
0577 008B1 005CC 0125
cat test.sh
#!/bin/ksh... (4 Replies)
Discussion started by: mbak
4 Replies
9. Shell Programming and Scripting
Hello,
I am practising awk and decided to compare two columns and print the result of the comparison as third column
i/p data
c1,c2,c3
1,a,b
1,b,b
i am trying to compare the last two columns and if they match I am trying to print match else mismatch(Ideally i want that as a last column... (5 Replies)
Discussion started by: mkathi
5 Replies
LEARN ABOUT MOJAVE
gldeleteprogram
GLDELETEPROGRAM(3G) OpenGL 3.3 GLDELETEPROGRAM(3G)
NAME
glDeleteProgram - Deletes a program object
C SPECIFICATION
void glDeleteProgram(GLuint program);
PARAMETERS
program
Specifies the program object to be deleted.
DESCRIPTION
glDeleteProgram frees the memory and invalidates the name associated with the program object specified by program. This command
effectively undoes the effects of a call to glCreateProgram().
If a program object is in use as part of current rendering state, it will be flagged for deletion, but it will not be deleted until it is
no longer part of current state for any rendering context. If a program object to be deleted has shader objects attached to it, those
shader objects will be automatically detached but not deleted unless they have already been flagged for deletion by a previous call to
glDeleteShader(). A value of 0 for program will be silently ignored.
To determine whether a program object has been flagged for deletion, call glGetProgram() with arguments program and GL_DELETE_STATUS.
ERRORS
GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.
ASSOCIATED GETS
glGet() with argument GL_CURRENT_PROGRAM
glGetProgram() with arguments program and GL_DELETE_STATUS
glIsProgram()
SEE ALSO
glCreateShader(), glDetachShader(), glUseProgram()
COPYRIGHT
Copyright (C) 2003-2005 3Dlabs Inc. Ltd. 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 GLDELETEPROGRAM(3G)