File: LastErrorTest.c

package info (click to toggle)
jaffl 0.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,228 kB
  • ctags: 2,993
  • sloc: java: 10,495; xml: 988; ansic: 273; makefile: 11; sh: 5
file content (23 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2008 Wayne Meissner. All rights reserved.
 * 
 * This file is part of jffi.
 *
 * This code is free software: you can redistribute it and/or modify it under 
 * the terms of the GNU Lesser General Public License version 3 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License 
 * version 3 for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with this work.  If not, see <http://www.gnu.org/licenses/>.
 */
#include <errno.h>

int setLastError(int error) {
    errno = error;
    return -1;
}