Changeset d0febca in mainline for uspace/app/sbi/src/os/posix.c
- Timestamp:
- 2010-03-13T12:04:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7715994
- Parents:
- 94d484a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/os/posix.c
r94d484a rd0febca 79 79 } 80 80 81 /** Get character from string at the given index. */ 82 int os_str_get_char(const char *str, int index, int *out_char) 83 { 84 size_t len; 85 86 len = strlen(str); 87 if (index < 0 || (size_t) index >= len) 88 return EINVAL; 89 90 *out_char = str[index]; 91 return EOK; 92 } 93 81 94 /** Simple command execution. */ 82 95 int os_exec(char *const cmd[])
Note:
See TracChangeset
for help on using the changeset viewer.