Merge branch 'ical'
[alpine.git] / pith / util.c
blobcb3ae5a28c265d565963e5a05aa0078c7ab8ebcf
1 #if !defined(lint) && !defined(DOS)
2 static char rcsid[] = "$Id: util.c 761 2007-10-23 22:35:18Z hubert@u.washington.edu $";
3 #endif
5 /*
6 * ========================================================================
7 * Copyright 2013-2017 Eduardo Chappa
8 * Copyright 2006 University of Washington
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * ========================================================================
19 #include "../pith/headers.h"
20 #include "../pith/util.h"
24 * Internal prototypes
29 * Allocate space for an int and copy val into it.
31 int *
32 cpyint(int val)
34 int *ip;
36 ip = (int *)fs_get(sizeof(int));
38 *ip = val;
40 return(ip);