Explore tweets tagged as #cstring
@MrJayLC
John
1 year
Guess this is a bit of tokenizing. I wonder if my process is sane: Store original string_buffer_ptr, create a dynamic array of string_views (ptr + len) and split by set delimiters (cstring). Generic parser / ast builder next?
0
0
0
@PinakDhir22
Pinak Dhir
2 years
Hi #techtwitter here with back on #day45 and #day46 of #100daysofcodeatchitkara #100daysofcode Done with 1. Strings (include header files cstring , string) ,strcat, substr, strcat , reverse, getline, to_string, size, strlen 2. Count sort (frequency approach) #learninpublic
1
0
4
@5mukx
Smukx.E
6 months
Pro tip : If you are writing polymorphic code snippet in rust. I recommend you guys to use std::ffi::CStr::from_ptr instead of CString::from_raw. cuz CStr safely creates a borrowed reference to the string data without taking ownership or freeing the memory.
1
0
24
@_silgen_name
집돌이
1 year
Swift Concurrency의 문제점 중 하나가 swift_task_reportUnexpectedExecutor이 소스코드 파일 이름을 Section __cstring에 평문으로 탑재해 버린다. 그래서 사진처럼 파일 이름이 모두 노출된다. 이는 Private Symbol을 알아내는 단서가 될 수 있다.
1
1
12
@_silgen_name
집돌이
8 months
`-[NSString initWithCString:encoding:]`에서 CString은 NULL이면 안 된다. 회사 앱에서 Null Check 안해서 크래시 났음...
0
0
3
@akash_wt
Akash Patel
1 year
#Day14 of #DSA learning! Covered some interesting topics today like Palindromes, Anagrams, cstring functions, and more. 💻🚀 #coding #100DaysOfCode #DSAjourney @ShradhaKhapra_ @ApnacollegeX @AmanDhattarwal
0
0
5
@NurNochCube
🜂 □Daniel Cubentrieb
11 months
irgendwas an meinem build env ist absolut arschgefickt. WIE ZUM FICK KANN ICH TAUSENDE ERRORS IN CSTRING HABEN???
0
0
1
@0xLegacyy
Jord
5 months
gdbw v0.1.2 released 🐸 - can now examine multiple data types (qword/dword/word/cstring) - symbol resolution improvements - bug fixes Thanks to @drakhaevn & cavefxa for contributions ❤️ https://t.co/JHbp6OJuJN
0
6
37
@zoriya_dev
Zoe Roux
1 year
Rust simply encodes too much things in it's type system: - where is the data stored (heap/stack) - common usage (path/cstring/str...) - lifetime - utf8 valid? the last two are the only thing you want in your type system (or only the last one in a non-rust lang)
@magey0
magey3
1 year
@HSVSphere I don't get how people can still hate proper type systems in 2024 and post shit like this arguing against them when they have only helped me write software faster
4
0
9
@YannMaru531
Y4NM4_vrc
3 years
「桔梗ちゃん用_Cstringパンツ」を マサダ商店 で購入しました! https://t.co/jzBCMtHNBS #booth_pm
0
0
2
@bitfield
John Arundel
1 year
Understanding string types in Rust: String: your string &str: somebody else's string OsStr / OsString / CStr / CString: invalid UTF-8 strings &[u8] / Vec<u8>: maybe a valid UTF-8 string, but probably not Path / PathBuf: a string that thinks it's a path
2
10
61
@gorilla0513
ゴリラ - 1月から本気ダイエットします
1 year
これでちゃんとメモリ解放できた ワイの実装が良くなかった CString::into_raw() が内部でBox::into_raw()を使っていて、Rustに戻すときはBox::from_raw()じゃないといけないのに、それを知らずCStr::from_ptr()でやってしまっていた
@gorilla0513
ゴリラ - 1月から本気ダイエットします
1 year
Rustでc++に渡した* const c_cahrをRustに戻してdropしてみたがなぜかメモリリークしてる 同じやり方で構造体をdropしたらちゃんとメモリ解放された よくわからん
2
1
42
@H_Hoshiyama
星山 等(TA-ZZW30)
2 years
cstring「やあ」 wstring「やあ」
@mattn_jp
mattn
2 years
現代プログラマをモヤモヤさせるワード「2バイト文字」
0
1
2
@HRTS4TVGIRL
Julicore ◡̈
3 years
IM CSTRING
1
0
1
@ryebread_01
rhyon
3 years
do not search “cstring” on google and going to images without adding “c++”
0
0
2
@jon__reiter
Jonathan
10 months
Currently updating an old windows C++ implant I wrote a while back to fully use modern C++ and wow what a difference C++ 23 and newer is. Why was I using CString objects everywhere and not std::string?? std::string are so much better!
1
0
11
@falconerd
Dylan Falconer
1 year
Using Odin and interfacing with a library that uses C-Strings? I've found this handy: my_cstring := fmt.ctprintf(my_string) c - C-String, t - temp allocator (there's also caprintf for context.allocator)
1
0
11