/* Copyright 1999 Pace Micro Technology plc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 *  AsmUtils (osvarlen.h)
 *
 * Copyright (C) Pace Micro Technology plc. 1999
 *
 */
#ifndef asmutils_osvarlen_h_inluded
#define asmutils_osvarlen_h_inluded

#ifdef __cplusplus
extern "C" {
#endif

/* The standard _swi and _swix veneers cannot be used to determine the
 * length of a system variable because they do not fill in the return
 * parameters if the SWI returns an error - like it does when you make
 * the recommended call to find the length of a system variable.
 *
 * This call replaces it.
 *
 * Returns the length, or -1 if unset (variable not found).
 */
extern int osvarlen(const char * /*system_variable*/, int /*type*/);

#ifdef __cplusplus
}
#endif
#endif
