Changeset 7c3fb9b in mainline for uspace/lib/c/generic/str.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/str.c
rfac0ac7 r7c3fb9b 202 202 return EINVAL; 203 203 204 /* Unsigned version of ch (bit operations should only be done 205 on unsigned types). */ 204 /* 205 * Unsigned version of ch (bit operations should only be done 206 * on unsigned types). 207 */ 206 208 uint32_t cc = (uint32_t) ch; 207 209 … … 1222 1224 * @param ch Character to insert to. 1223 1225 * @param pos Character index where to insert. 1224 @@param max_pos Characters in the buffer.1226 * @param max_pos Characters in the buffer. 1225 1227 * 1226 1228 * @return True if the insertion was sucessful, false if the position … … 1531 1533 return EINVAL; 1532 1534 1533 /* Check whether we are at the end of 1534 the string in strict mode */ 1535 /* 1536 * Check whether we are at the end of 1537 * the string in strict mode 1538 */ 1535 1539 if ((strict) && (*lendptr != 0)) 1536 1540 return EINVAL; … … 1578 1582 return EINVAL; 1579 1583 1580 /* Check whether we are at the end of 1581 the string in strict mode */ 1584 /* 1585 * Check whether we are at the end of 1586 * the string in strict mode 1587 */ 1582 1588 if ((strict) && (*lendptr != 0)) 1583 1589 return EINVAL; … … 1625 1631 return EINVAL; 1626 1632 1627 /* Check whether we are at the end of 1628 the string in strict mode */ 1633 /* 1634 * Check whether we are at the end of 1635 * the string in strict mode 1636 */ 1629 1637 if ((strict) && (*lendptr != 0)) 1630 1638 return EINVAL; … … 1671 1679 return EINVAL; 1672 1680 1673 /* Check whether we are at the end of 1674 the string in strict mode */ 1681 /* 1682 * Check whether we are at the end of 1683 * the string in strict mode 1684 */ 1675 1685 if ((strict) && (*lendptr != 0)) 1676 1686 return EINVAL; … … 1711 1721 return EINVAL; 1712 1722 1713 /* Check whether we are at the end of 1714 the string in strict mode */ 1723 /* 1724 * Check whether we are at the end of 1725 * the string in strict mode 1726 */ 1715 1727 if ((strict) && (*lendptr != 0)) 1716 1728 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.