Changeset e28175d in mainline for uspace/lib/c/generic/str.c
- Timestamp:
- 2020-03-15T10:44:02Z (6 years ago)
- Parents:
- b401b33 (diff), 44dde42 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- heiducteam <tristanided@…> (2020-03-15 10:44:02)
- git-committer:
- GitHub <noreply@…> (2020-03-15 10:44:02)
- File:
-
- 1 edited
-
uspace/lib/c/generic/str.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/str.c
rb401b33 re28175d 801 801 802 802 return false; 803 } 804 805 /** Get a string suffix. 806 * 807 * Return a string suffix defined by the prefix length. 808 * 809 * @param s The string to get the suffix from. 810 * @param prefix_length Number of prefix characters to ignore. 811 * 812 * @return String suffix. 813 * 814 */ 815 const char *str_suffix(const char *s, size_t prefix_length) 816 { 817 size_t off = 0; 818 size_t i = 0; 819 820 while (true) { 821 str_decode(s, &off, STR_NO_LIMIT); 822 i++; 823 824 if (i >= prefix_length) 825 break; 826 } 827 828 return s + off; 803 829 } 804 830
Note:
See TracChangeset
for help on using the changeset viewer.
