01-07-2012
Thank you
Thank you very much, this helps a lot
10 More Discussions You Might Find Interesting
1. Programming
How to get free disk space size in C/C++ program( Solaris system)?
Is there any standard function or system function? Just like "df" or
"getdfree" in Linux. (4 Replies)
Discussion started by: yidu
4 Replies
2. Shell Programming and Scripting
I have my Mac OS X program executing a shell script (a script that copies files to a drive). I want to make it so that the shell script automatically kills itself if it finds that the host .app is not running OR kill itself if the drive that it is copying files to has been unmounted. Right now what... (2 Replies)
Discussion started by: pcwiz
2 Replies
3. Homework & Coursework Questions
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:
Write a C program to search the current directory for all pipes.
1. It will print the pipe... (2 Replies)
Discussion started by: natwickley
2 Replies
4. Programming
Hello,
Can some one help me by writing me the script of a program that does the following simple functions on a Linux Mint:
1. it runs in the background all the time, doing nothing except of checking if there is any external device mounted.
2. when the device is detected, it copies files... (1 Reply)
Discussion started by: Black_Ardilla
1 Replies
5. Shell Programming and Scripting
Hi ,
I have been trying to write a perl script to do this job. But i am not able to achieve the desired result. Below is my code.
my $current_value=12345;
my @users=("bob","ben","tom","harry");
open DBLIST,"<","/var/tmp/DBinfo";
my @input = <DBLIST>;
foreach (@users)
{
my... (11 Replies)
Discussion started by: chidori
11 Replies
6. Shell Programming and Scripting
Hi all,
I have a big file (n.txt) with following pattern:
ATOM 1 N SER A 1 122.392 152.261 138.190 1.00 0.00 N
ATOM 2 CA SER A 1 122.726 151.241 139.183 1.00 0.00 C
TER
ENDMDL
ATOM 1 N SER A 1 114.207 142.287 135.439 1.00 0.00 ... (3 Replies)
Discussion started by: bioinfo
3 Replies
7. Programming
Hi,
I am not a C programmer. The only C exposure I have is reading and completing the exercises from the C (ANSI C ) Programming Language book:o
At the moment, I am using the UNIX strings command to extract information for a binary file and grepping for a particular string and the value... (3 Replies)
Discussion started by: newbie_01
3 Replies
8. Shell Programming and Scripting
I have two files:
file 1:
hello.com neo.com,japan.com,example.com
news.net xyz.com, telecom.net, highlands.net, software.com
example2.com earth.net, abc.gov.uk
file 2:
neo.com
example.com
abc.gov.uk
file 2 are the search keys to search in file 1 if any of the search... (7 Replies)
Discussion started by: csim_mohan
7 Replies
9. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
10. Shell Programming and Scripting
Hi All,
Your help on the below requirement is highly appreciated.
I am building a program which should pick the file from a source directory and place them into target directory. While selecting the file in source it should look for some pattern in the file name.
Ex:
File Name 1:... (10 Replies)
Discussion started by: bharath561989
10 Replies
LEARN ABOUT OSX
glutextensionsupported
glutExtensionSupported(3GLUT) GLUT glutExtensionSupported(3GLUT)
NAME
glutExtensionSupported - helps to easily determine whether a given OpenGL extension is supported.
SYNTAX
#include <GLUT/glut.h>
int glutExtensionSupported(char *extension);
ARGUMENTS
extension Name of OpenGL extension.
DESCRIPTION
glutExtensionSupported helps to easily determine whether a given OpenGL extension is supported or not. The extension parameter names the
extension to query. The supported extensions can also be determined with glGetString(GL_EXTENSIONS), but glutExtensionSupported does the
correct parsing of the returned string.
glutExtensionSupported returns non-zero if the extension is supported, zero if not supported.
There must be a valid current window to call glutExtensionSupported.
glutExtensionSupported only returns information about OpenGL extensions only. This means window system dependent extensions (for example,
GLX extensions) are not reported by glutExtensionSupported.
EXAMPLE
Here is an example of using glutExtensionSupported:
if (!glutExtensionSupported("GL_EXT_texture")) {
fprintf(stderr, "Missing the texture extension!
");
exit(1);
}
Notice that the name argument includes both the GL prefix and the extension family prefix (EXT).
SEE ALSO
glutGet, glGetString
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT
3.7 glutExtensionSupported(3GLUT)