Sponsored Content
Full Discussion: Great Job!
Contact Us Post Here to Contact Site Administrators and Moderators Great Job! Post 302883289 by Aditya_001 on Monday 13th of January 2014 05:38:45 AM
Old 01-13-2014
Yep Unix.com is much appreciated and I too like this forum and it scores way beyond others!!
 

2 More Discussions You Might Find Interesting

1. What is on Your Mind?

Great deal!

Okay, I don't know how this is funny, but it is. I found this while searching for Linux (please don't ask). :o (0 Replies)
Discussion started by: gnerd
0 Replies

2. Post Here to Contact Site Administrators and Moderators

Great service -- why?

This a great service! I'm just curious how the people who are paying for the server, domain name, etc. are paying their bills. It doesn't look like this site generates any income through ads... why not try putting google's adwords on the site? Seems like it would be free money. (1 Reply)
Discussion started by: scottish
1 Replies
find_allegro_resource(3alleg4)					  Allegro manual				    find_allegro_resource(3alleg4)

NAME
find_allegro_resource - Searches for a support file in many places. Allegro game programming library. SYNOPSIS
#include <allegro.h> int find_allegro_resource(char *dest, const char *resource, const char *ext, const char *datafile, const char *objectname, const char *envvar, const char *subdir, int size); DESCRIPTION
Searches for a support file, eg. `allegro.cfg' or `language.dat'. Passed a resource string describing what you are looking for, along with extra optional information such as the default extension, what datafile to look inside, what the datafile object name is likely to be, any special environment variable to check, and any subdirectory that you would like to check as well as the default location, this function looks in a hell of a lot of different places :-). Pass NULL for the parameters you are not using. Check the documentation chapter specific to your platform for information on additional paths this function might search for. Also, don't forget about set_allegro_resource_path() to extend the searches. Example: char path[256]; int ret; ret = find_allegro_resource(path, "scores.cfg", NULL, NULL, NULL, NULL, NULL, sizeof(path)); if (ret == 0) { /* Found system wide scores file. */ } else { /* No previous scores, create our own file. */ } RETURN VALUE
Returns zero on success, and stores a full path to the file (at most size bytes) into the dest buffer. SEE ALSO
set_allegro_resource_path(3alleg4) Allegro version 4.4.2 find_allegro_resource(3alleg4)
All times are GMT -4. The time now is 03:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy