Changeset 15563


Ignore:
Timestamp:
05/08/12 21:50:48 (11 years ago)
Author:
nit
Message:

[titan] add getdevcontent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r15543 r15563  
    29292929}
    29302930
     2931char* getdevcontent(char* devconfig)
     2932{
     2933        debug(1000, "in");
     2934        char *dev = NULL;
     2935        char *value = NULL;
     2936
     2937        dev = getconfig(devconfig, NULL);
     2938
     2939        if(dev == NULL)
     2940        {
     2941                debug(1000, "out -> NULL detect");
     2942                return NULL;
     2943        }
     2944
     2945        value = readsys(dev, 1);
     2946        if(value == NULL)
     2947        {
     2948                debug(1000, "out -> NULL detect");
     2949                return NULL;
     2950        }
     2951
     2952        debug(1000, "out");
     2953        return value;
     2954}
     2955
    29312956char* convertspacetolf(char* value)
    29322957{
Note: See TracChangeset for help on using the changeset viewer.