home *** CD-ROM | disk | FTP | other *** search
- /*
- #### # # # #
- # # # # # The FreeWare C library for
- # # ## ### # # # # ### RISC OS machines
- # # # # # # # # # # # ___________________________________
- # # #### ### ## # # # #
- # # # # # # # # # # Please refer to the accompanying
- #### ### #### # # ##### # ### documentation for conditions of use
- ________________________________________________________________________
-
- File: Template.Find.c
- Author: Copyright © 1992 Jason Williams
- Thanks to John Winters for supplying the code that I hacked
- changed, hacked, rewrote, and then wrote again from scratch!
- Version: 1.10 (29 Mar 1992)
- Purpose: Loading, cacheing, and retrieval of window templates
- */
-
-
- #include "TempDefs.h"
-
-
- extern template_record *Template__FindTemplate(char *name)
- /* not intended for user-consumption! Use Template_Find instead */
- {
- template_record *t;
-
- t = (template_record *) template_list.next;
-
- while (t != NULL)
- {
- if (!strncmp(name, t->identifier, wimp_MAXNAME))
- return(t);
-
- t = (template_record *) t->header.next;
- }
-
- return(NULL);
- }
-
-
-
- extern window_block *Template_Find(char *name)
- {
- template_record *t;
-
- t = Template__FindTemplate(name);
-
- if (t == NULL)
- return(NULL);
-
- return(t->windowdef);
- }
-