/builddir/build/BUILD/gru-0.1.0/src/common/gru_base.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <pwd.h>
#include <unistd.h>
#include <sys/types.h>
#include "gru_portable.h"

Go to the source code of this file.

Defines

#define GRU_OPT_MAX_STR_SIZE   256
 Copyright 2016 Otavio Rodolfo Piske.
#define GRU_OPT_MAX_STR_SIZE_MASK   "%256s"
#define GRU_OPT_MAX_CHAR_SIZE_MASK   "%256c"

Functions

gru_export const char * gru_base_app_home (const char *appname)
 Returns the base directory for the application given an application name For Unix-like, that would be: $HOME/.appname.

Define Documentation

#define GRU_OPT_MAX_CHAR_SIZE_MASK   "%256c"
#define GRU_OPT_MAX_STR_SIZE   256

Copyright 2016 Otavio Rodolfo Piske.

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.

#define GRU_OPT_MAX_STR_SIZE_MASK   "%256s"

Function Documentation

gru_export const char* gru_base_app_home ( const char *  appname  ) 

Returns the base directory for the application given an application name For Unix-like, that would be: $HOME/.appname.

Parameters:
appname Application name
Returns:
a pointer to a static buffer that will be automatically free'd at exit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 10 Feb 2018 for GRU - Generic Reusable Utilities by  doxygen 1.6.1