Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リストがあるとしましょう。どうすればそれを複製できますか? list1 と list2 の 2 つのリストを組み合わせたリストを作成しました。結合リストを複製するにはどうすればよいですか? Cプログラミングでこれを行う必要があります
リストのサイズを取得します。次に、そのサイズの別のバッファーを作成し、memcpy を使用してリストの場所からバッファーにメモリをコピーします。