* Fixes to the configure script that prevented Alpine from completing
[alpine.git] / pith / util.c
blob1aa96266cc998a5955400425f4a619b84068cc49
1 /*
2 * ========================================================================
3 * Copyright 2013-2022 Eduardo Chappa
4 * Copyright 2006 University of Washington
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * ========================================================================
15 #include "../pith/headers.h"
16 #include "../pith/util.h"
20 * Internal prototypes
25 * Allocate space for an int and copy val into it.
27 int *
28 cpyint(int val)
30 int *ip;
32 ip = (int *)fs_get(sizeof(int));
34 *ip = val;
36 return(ip);