Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

exists(3alleg4) [debian man page]

exists(3alleg4) 						  Allegro manual						   exists(3alleg4)

NAME
exists - Shortcut version of file_exists() for normal files. Allegro game programming library. SYNOPSIS
#include <allegro.h> int exists(const char *filename); DESCRIPTION
Shortcut version of file_exists(), which checks for normal files, which may have the archive or read-only bits set, but are not hidden, directories, system files, etc. RETURN VALUE
Returns non-zero if the file exists, or zero if it doesn't. SEE ALSO
file_exists(3alleg4), file_size_ex(3alleg4), file_time(3alleg4) Allegro version 4.4.2 exists(3alleg4)

Check Out this Related Man Page

exmidi(3alleg4) 						  Allegro manual						   exmidi(3alleg4)

NAME
exmidi - Playing MIDI music. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exmidi DESCRIPTION
This program demonstrates how to play MIDI files. SEE ALSO
END_OF_MAIN(3alleg4), MIDI(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_mes- sage(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), destroy_midi(3alleg4), font(3alleg4), get_filename(3alleg4), get_midi_length(3alleg4), install_keyboard(3alleg4), install_sound(3alleg4), install_timer(3alleg4), key(3alleg4), keypressed(3alleg4), load_midi(3alleg4), makecol(3alleg4), midi_pause(3alleg4), midi_pos(3alleg4), midi_resume(3alleg4), midi_time(3alleg4), play_midi(3alleg4), readkey(3alleg4), rectfill(3alleg4), rest(3alleg4), screen(3alleg4), set_display_switch_mode(3alleg4), set_gfx_mode(3alleg4), set_pal- ette(3alleg4), text_height(3alleg4), text_length(3alleg4), textprintf_centre_ex(3alleg4) Allegro version 4.4.2 exmidi(3alleg4)
Man Page

15 More Discussions You Might Find Interesting

1. Cybersecurity

how to hide the IP in the email header?

Hi everyone, I am a new comer in this forum. When I try to send email in my Linux machine with command "mail" or "sendmail", I always find it include the IP address of my machine in the email header. Does anybody know how to eliminate this IP address or replace it with a fake one in the email... (20 Replies)
Discussion started by: eddie
20 Replies

2. UNIX for Dummies Questions & Answers

Cd

why is 'cd' a shell built in and not an executable? (27 Replies)
Discussion started by: clickonline1
27 Replies

3. UNIX for Dummies Questions & Answers

Need to serach if a new line character exists on the last line in a file

I have a file in which I need to search if a new line character exists on the last line in the file. Please let me know how can I achieve it using Unix commands? (10 Replies)
Discussion started by: sunilbm78
10 Replies

4. Shell Programming and Scripting

how to get line number of different words if exists in same line

I have some txt files. I have to create another text file which contains the portion starting from the format "Date Sex Address" to the end of the file. While using grep -n on Date it also gives me the previous line containg Date. and also Date may be DATE in some files. My file is like this... (10 Replies)
Discussion started by: Amiya Rath
10 Replies

5. Shell Programming and Scripting

Check if a file exists with certain prefix

Hi guys, How would i check a file exists with certainprefix? i have a directory with some files: ABC1 ABC2 ABC3 etc.. and want to do: please note i am using the korn shell environment.As when i gone through some stuff on then net i came to know some of the options will work... (11 Replies)
Discussion started by: raoscb
11 Replies

6. Shell Programming and Scripting

HOW TO CHECK ONLY .C FILES EXISTS OR NOT IN A FOLDER using IF in C shell script?

Hi friends.. I hav a problem.... I dont know how to check .c files exists r not in a folder using IF in C shell script actually i tried like this if(=~ *.c) even though some .c files or there in the current folder..it is not entering int o the if control statement...... (17 Replies)
Discussion started by: p.hemadrireddy
17 Replies

7. Shell Programming and Scripting

check if a directory exists if not make it

Hey guys im trying to check if the directory exists i get a syntax error on the elif statement iv tried using else and still same result im not sure. If the directory does not exist can i just insert mkdir /tmp/old under the elif once that part gets working if ; then #do nothing elif echo... (20 Replies)
Discussion started by: musicmancanora
20 Replies

8. Shell Programming and Scripting

print line if 2nd field exists in text

2 files, first one has 3 fields seperated by ||| and 2nd one is plain text. I want to copy the lines from the first file if the 2nd field is present anywhere in the text file. This is what I've tried, but I'm new to awk and shell scripting in general so it's kinda broken. #!/bin/awk -f BEGIN... (15 Replies)
Discussion started by: FrancoisCN
15 Replies

9. Shell Programming and Scripting

File Exists

Hi, I have scenerio where i need to check 3 files whether they are of current day files and then count should not be equal to zero. how to achieve the same please let me know. Vishal (17 Replies)
Discussion started by: shady4u
17 Replies

10. Shell Programming and Scripting

How to see the list of files which exists with nonzero bytes

Hi, I would like to see the file list which contains the data. Ex : - When I enter the "ls -ltr" command it will show all the files which are exists in the directory, But I want only those files list which are non zero byte by using only ls command. I knew that I can write a script with... (12 Replies)
Discussion started by: kandi.reddy
12 Replies

11. Shell Programming and Scripting

Check if file exists if not send an alert

Hi, Im looking to write a script to check if a file exists and if it doesnt then send an email out, Ive found the below code but I don't understand the ! in the if statement can anyone explain? Any help will be much appreciated #!/bin/bash if then echo "File not exists" |... (10 Replies)
Discussion started by: 02JayJay02
10 Replies

12. Shell Programming and Scripting

Check if PID exists

In a Shell Script what is the most generic way to find in the PID exists or not. If it does not exist how can I echo the user "PID does not exist" & terminate the unix script ? If the command can work on most flavors of operating system the more useful I will find it to be. Current system... (16 Replies)
Discussion started by: mohtashims
16 Replies

13. Shell Programming and Scripting

Remove only specific char on every line when exists

Hi I need to remove "|" char when it's the last char of the line. Input file: generoso|desprendido|altruista| abnegar|ceder|sacrificar| abocetado-da|esbozado| apuntado|insinuado|incompleto abocetar|esbozar|bosquejar| diseņar|delinear ------------------------ output need --- ... (11 Replies)
Discussion started by: lookoo
11 Replies

14. Shell Programming and Scripting

If a string variable value exists in a set of values

Can some one please help me with the syntax in shell script for the below : if $var1 exists in ('val1','val2','val3') I want to execute a set of commands if the value of var1 variable matches any one of the given string values. Please let me know if there are any other option to go by. ... (10 Replies)
Discussion started by: Pandee
10 Replies

15. UNIX for Advanced & Expert Users

Need help to delete special characters exists only at the end of the each record in UNIX file?

Hi, I have a file in unix with 15 columns.It consists special characters(#,$,^M,@,*,% etc)at the end of the each record.I want to remove these special characters.I used the following: Sed -e 's/ /g;s/ */ /g' . But It is removing special characters exists everywhere in the file(begining,middle... (24 Replies)
Discussion started by: rakeshp
24 Replies