Title: localString returns a structur by value and no pointer. · Issue #1 · NJdevPro/SPString · GitHub
Open Graph Title: localString returns a structur by value and no pointer. · Issue #1 · NJdevPro/SPString
X Title: localString returns a structur by value and no pointer. · Issue #1 · NJdevPro/SPString
Description: localString returns a structur by value and no pointer. Therefore the example is wrong: #define SIZE 40 <--- the LString can never grow longer than 39 chars static char buff[SIZE] = "Hello"; LString *hello = localString(buff, SIZE); ... ...
Open Graph Description: localString returns a structur by value and no pointer. Therefore the example is wrong: #define SIZE 40 <--- the LString can never grow longer than 39 chars static char buff[SIZE] = "Hello"; LStrin...
X Description: localString returns a structur by value and no pointer. Therefore the example is wrong: #define SIZE 40 <--- the LString can never grow longer than 39 chars static char buff[SIZE] = "Hello&...
Opengraph URL: https://github.com/NJdevPro/SPString/issues/1
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"localString returns a structur by value and no pointer.","articleBody":"localString returns a structur by value and no pointer. Therefore the example is wrong:\r\n\r\n```\r\n #define SIZE 40 \u003c--- the LString can never grow longer than 39 chars\r\n static char buff[SIZE] = \"Hello\";\r\n LString *hello = localString(buff, SIZE);\r\n ...\r\n lstringchcat(hello, \" World !\");\r\n } \u003c--- automatic deallocation at the end of the scope\r\n \r\n Warning: The following does not work (because localString does \r\n not allocate memory):\r\n LString *hello = localString(\"Hello World\", SIZE); \r\n```\r\nIn my opinion it must be:\r\n\r\n```\r\n #define SIZE 40 \u003c--- the LString can never grow longer than 39 chars\r\n static char buff[SIZE] = \"Hello\";\r\n LString hello = localString(buff, SIZE);\r\n ...\r\n lstringchcat(\u0026hello, \" World !\");\r\n } \u003c--- automatic deallocation at the end of the scope\r\n \r\n Warning: The following does not work (because localString does \r\n not allocate memory):\r\n LString hello = localString(\"Hello World\", SIZE); \r\n```","author":{"url":"https://github.com/kwrtz","@type":"Person","name":"kwrtz"},"datePublished":"2024-02-09T11:57:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/SPString/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ef8edfb-8964-94ca-6d7a-a2307587d27c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4C6:A1BB5:28B664:3460C6:69903E84 |
| html-safe-nonce | b1327d1f8842cf9b1958f24b60b00f024d84a8ffe2e177ffc6326a3582b4eb47 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEM2OkExQkI1OjI4QjY2NDozNDYwQzY6Njk5MDNFODQiLCJ2aXNpdG9yX2lkIjoiMTg4OTI5NjY4MTUyNDAxODgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 51350ff3a5f7a969836cb873a9d5d148ba48a3b2959986f7728ea149e4d5e5ec |
| hovercard-subject-tag | issue:2126993767 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NJdevPro/SPString/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05d75e10cf2cd882944541b8837350a9519d8a2547bba1bcb255b656a19ed0da/NJdevPro/SPString/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05d75e10cf2cd882944541b8837350a9519d8a2547bba1bcb255b656a19ed0da/NJdevPro/SPString/issues/1 |
| og:image:alt | localString returns a structur by value and no pointer. Therefore the example is wrong: #define SIZE 40 <--- the LString can never grow longer than 39 chars static char buff[SIZE] = "Hello"; LStrin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kwrtz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/NJdevPro/SPString git https://github.com/NJdevPro/SPString.git |
| octolytics-dimension-user_id | 30365898 |
| octolytics-dimension-user_login | NJdevPro |
| octolytics-dimension-repository_id | 98018719 |
| octolytics-dimension-repository_nwo | NJdevPro/SPString |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 98018719 |
| octolytics-dimension-repository_network_root_nwo | NJdevPro/SPString |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width