JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
Defines a set of utility operations on string types cs_const_string64, cs_const_string64_pin_t, cs_const_string.
| #define CS_STRING64_H | ||
| #define CS_CONST_STRING64_NULL | (cs_const_string64_get_null()) | The null cs_const_string64. |
| Parameters |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns |
A cs_result:
|
||||||||||||
| Notes | Call this function with out_string NULL and capacity_bytes 0 (zero) to determine the memory needed to hold the entire representation. |
| Parameters |
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns | A cs_const_string with the same contents as s. This value is safe for use until the pin is released. | |||||||||
| Notes | Call cs_const_string64_unpin(pin_ptr) when you have finished using the returned cs_const_string64.
The following example code extracts and uses the 'name' field of a cs_ast.
cs_ast myast;
cs_ast_field field;
cs_size_t bytes;
cs_const_string64_pin_t mypin;
cs_const_string name;
// [... omitted: set myast to the AST of interest]
CSRC(cs_ast_get_field(myast, csao_nc_name, &field));
if (field.type != csft_const_str64) {return 0;}
name = cs_const_string64_pin(field._.const_str64, &bytes, &mypin );
// [... omitted: use name]
cs_const_string64_unpin(&mypin);
|
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | void | |||
| Notes | See the cs_const_string64_pin() documentation for a code example. |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | CS_SUCCESS on success |
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns |
A cs_boolean:
|
| Parameters |
|
||||||
|---|---|---|---|---|---|---|---|
| Returns | A hash of str using seed hseed. |
| Parameters |
|
|||
|---|---|---|---|---|
| Returns | A hash of str. |