Sponsored Content
Top Forums Programming How a program can know where it is located by itself? Post 59312 by Perderabo on Wednesday 15th of December 2004 10:45:47 PM
Old 12-15-2004
There is no great solution, but see this... How can an executing program determine its own pathname?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where is the master boot record located?

From doing some research it should be /dev/sda (SCSI drive) but mine doesn't display that. How can I find out where it is located? (1 Reply)
Discussion started by: shorty
1 Replies

2. Solaris

where is the installation script located?

Hi all, I have an intriguing question.... Consider these options..(obtained the first installations of solaris) 1.solaris installation -console mode 2.single user login 3.update drivers I wanted to know which script handles this and where it is located? Does anyone know the absolute... (0 Replies)
Discussion started by: wrapster
0 Replies

3. Shell Programming and Scripting

Deleting a file located on another server

Hi, I have successfully copied a file from one server to another using following command. user1@server1# scp test.jsp user2@server2:/home/ Now i want to delete that copied file(test.jsp) from "server2" by running some command from server1. Please help... (2 Replies)
Discussion started by: SanketJOSHI
2 Replies

4. UNIX for Dummies Questions & Answers

how to know the device on which the file is located

Hi, i want to know on which device a file is located is there any command or anyway to know it thanks santosh (5 Replies)
Discussion started by: santosh149
5 Replies

5. Shell Programming and Scripting

How do I go about finding a value located in one file in another?

Hi, I have to determine which VALID users made a failed loggon attempts on our server.To make a long story short, I have isolated the list of all the usernames and number of attempts in one file, and have isolated the valid users who have made failed loggon attempts in another file. I now have... (2 Replies)
Discussion started by: mojoman
2 Replies

6. Hardware

Where is the BIOS located???

Hi friends, I hope you are doing well. Can you please tell me which part of the motherboard contains the BIOS software, name that exact location. And could please give me the names of the firmwares for atleast 5 archetictures, like sun sparc, ibm power, hp alpha etc. Looking forward to your... (0 Replies)
Discussion started by: gabam
0 Replies

7. Programming

Where are the library function definitions located?

Hi friends, I hope everyone is doing fine. I have this confusion, hope you can help me out with it. The header files contain only function prototypes. Where are the function definitions located. For example, if I would like to see how printf works, where can I see its definition, stdio.h only... (2 Replies)
Discussion started by: gabam
2 Replies

8. UNIX for Dummies Questions & Answers

sudo dmidecode where is the file located ?

Been through all my /sys /sbin /bin directories and can't seem to find it. (2 Replies)
Discussion started by: jcnewton13
2 Replies

9. IP Networking

Pinging IP located on another interface

Hi, I have a rather strange IP question... Here's my problem: I have a Linux box (call it "turing") with 2 NICs. One network interface (eth0) has an IP assigned, say 192.168.42.50. The other interface (eth1) is up, but has no IP yet. My question: is it possible to determine from... (3 Replies)
Discussion started by: NH2
3 Replies

10. Linux

The DNS files, where are located?

Hello, please where are located DNS files on various linux distributions? Mainly im interested in CentOS (RedHat) and Ubuntu (Debian). I mean i will be changing IPs and i have registered nameservers on my domain registar and it points to OLD IP, so i need to know in which files to edit on... (3 Replies)
Discussion started by: postcd
3 Replies
set_display_switch_callback(3alleg4)				  Allegro manual			      set_display_switch_callback(3alleg4)

NAME
set_display_switch_callback - Installs a switching notification callback. Allegro game programming library. SYNOPSIS
#include <allegro.h> int set_display_switch_callback(int dir, void (*cb)()); DESCRIPTION
Installs a notification callback for the switching mode that was previously selected by calling set_display_switch_mode(). The direction parameter can either be SWITCH_IN or SWITCH_OUT, depending whether you want to be notified about switches away from your program or back to your program. You can sometimes install callbacks for both directions at the same time, but not every platform supports this. You can install several switch callbacks, but no more than eight on any platform. RETURN VALUE
Returns zero on success, decreasing the number of empty callback slots by one. Returns -1 if the request is impossible for the current platform or you have reached the maximum number of allowed callbacks. SEE ALSO
remove_display_switch_callback(3alleg4), set_display_switch_mode(3alleg4), exswitch(3alleg4) Allegro version 4.4.2 set_display_switch_callback(3alleg4)
All times are GMT -4. The time now is 09:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy