亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? linked_lists_single.sgml

?? GLIB-C的最新源代碼
?? SGML
字號:
<!-- ##### SECTION Title ##### -->Singly-Linked Lists<!-- ##### SECTION Short_Description ##### -->linked lists containing integer values or pointers to data, limited toiterating over the list in one direction.<!-- ##### SECTION Long_Description ##### --><para>The #GSList structure and its associated functions provide a standardsingly-linked list data structure.</para><para>Each element in the list contains a piece of data, together with a pointerwhich links to the next element in the list.Using this pointer it is possible to move through the list in onedirection only (unlike the<link linkend="glib-Doubly-Linked-lists">Doubly-Linked Lists</link>which allow movement in both directions).</para><para>The data contained in each element can be either integer values, by using oneof the<link linkend="glib-Type-Conversion-Macros">Type Conversion Macros</link>,or simply pointers to any type of data.</para><para>List elements are allocated from the <link linkend="glib-Memory-Slices">sliceallocator</link>, which is more efficient than allocating elements individually.</para><para>Note that most of the #GSList functions expect to be passed a pointer tothe first element in the list. The functions which insert elements returnthe new start of the list, which may have changed.</para><para>There is no function to create a #GSList. %NULL is considered to be the emptylist so you simply set a #GSList* to %NULL.</para><para>To add elements, use g_slist_append(), g_slist_prepend(), g_slist_insert()and g_slist_insert_sorted().</para><para>To remove elements, use g_slist_remove().</para><para>To find elements in the list use g_slist_last(), g_slist_next(),g_slist_nth(), g_slist_nth_data(), g_slist_find() andg_slist_find_custom().</para><para>To find the index of an element use g_slist_position() and g_slist_index().</para><para>To call a function for each element in the list use g_slist_foreach().</para><para>To free the entire list, use g_slist_free().</para><!-- ##### SECTION See_Also ##### --><para></para><!-- ##### SECTION Stability_Level ##### --><!-- ##### STRUCT GSList ##### --><para>The #GSList struct is used for each element in the singly-linked list.</para>@data: holds the element's data, which can be a pointer to any kind of data,   or any integer value using the   <link linkend="glib-Type-Conversion-Macros">Type Conversion Macros</link>.@next: contains the link to the next element in the list.<!-- ##### FUNCTION g_slist_alloc ##### --><para>Allocates space for one #GSList element.It is called by the g_slist_append(), g_slist_prepend(), g_slist_insert() andg_slist_insert_sorted() functions and so is rarely used on its own.</para>@Returns: a pointer to the newly-allocated #GSList element.<!-- ##### FUNCTION g_slist_append ##### --><para>Adds a new element on to the end of the list.</para><note><para>The return value is the new start of the list, which may have changed, somake sure you store the new value.</para></note><note><para>Note that g_slist_append() has to traverse the entire list to find the end,which is inefficient when adding multiple elements. A common idiom toavoid the inefficiency is to prepend the elements and reverse the list when all elements have been added. </para></note><informalexample><programlisting>  /* Notice that these are initialized to the empty list. */  GSList *list = NULL, *number_list = NULL;  /* This is a list of strings. */  list = g_slist_append (list, "first");  list = g_slist_append (list, "second");  /* This is a list of integers. */  number_list = g_slist_append (number_list, GINT_TO_POINTER (27));  number_list = g_slist_append (number_list, GINT_TO_POINTER (14));</programlisting></informalexample>@list: a #GSList.@data: the data for the new element.@Returns: the new start of the #GSList.<!-- ##### FUNCTION g_slist_prepend ##### --><para>Adds a new element on to the start of the list.</para><note><para>The return value is the new start of the list, which may have changed, somake sure you store the new value.</para></note><informalexample><programlisting>  /* Notice that it is initialized to the empty list. */  GSList *list = NULL;  list = g_slist_prepend (list, "last");  list = g_slist_prepend (list, "first");</programlisting></informalexample>@list: a #GSList.@data: the data for the new element.@Returns: the new start of the #GSList.<!-- ##### FUNCTION g_slist_insert ##### --><para>Inserts a new element into the list at the given position.</para>@list: a #GSList.@data: the data for the new element.@position: the position to insert the element. If this is negative, or islarger than the number of elements in the list, the new element is added onto the end of the list.@Returns: the new start of the #GSList.<!-- ##### FUNCTION g_slist_insert_before ##### --><para>Inserts a node before @sibling containing @data. Returns the new head of the list.</para>@slist: a #GSList.@sibling: node to insert @data before.@data: data to put in the newly-inserted node.@Returns: new head of the list.<!-- ##### FUNCTION g_slist_insert_sorted ##### --><para>Inserts a new element into the list, using the given comparison functionto determine its position.</para>@list: a #GSList.@data: the data for the new element.@func: the function to compare elements in the list. It should return anumber > 0 if the first parameter comes after the second parameter inthe sort order.@Returns: the new start of the #GSList.<!-- ##### FUNCTION g_slist_remove ##### --><para>Removes an element from a #GSList.If two elements contain the same data, only the first is removed.If none of the elements contain the data, the #GSList is unchanged.</para>@list: a #GSList.@data: the data of the element to remove.@Returns: the new start of the #GSList.<!-- ##### FUNCTION g_slist_remove_link ##### --><para>Removes an element from a #GSList, without freeing the element.The removed element's next link is set to %NULL, so that it becomes aself-contained list with one element.</para>@list: a #GSList.@link_: an element in the #GSList.@Returns: the new start of the #GSList, without the element.<!-- ##### FUNCTION g_slist_delete_link ##### --><para>Deletes a node of @list. Returns the new list head.</para>@list: a #GSList.@link_: node to delete.@Returns: new head of @list.<!-- ##### FUNCTION g_slist_remove_all ##### --><para>Removes all list nodes with data equal to @data. Returns the newhead of the list. Contrast with g_slist_remove() which removes only the first node matching the given data.</para>@list: a #GSList.@data: data to remove.@Returns: new head of @list.<!-- ##### FUNCTION g_slist_free ##### --><para>Frees all of the memory used by a #GSList.The freed elements are returned to the slice allocator.</para>@list: a #GSList.<!-- ##### FUNCTION g_slist_free_1 ##### --><para>Frees one #GSList element.It is usually used after g_slist_remove_link().</para>@list: a #GSList element.<!-- ##### MACRO g_slist_free1 ##### --><para>A macro which does the same as g_slist_free_1().</para>@Since: 2.10<!-- ##### FUNCTION g_slist_length ##### --><para>Gets the number of elements in a #GSList.</para>@list: a #GSList.@Returns: the number of elements in the #GSList.<!-- ##### FUNCTION g_slist_copy ##### --><para>Copies a #GSList.</para><para>Note that this is a "shallow" copy. If the list elements consist of pointersto data, the pointers are copied but the actual data isn't.</para>@list: a #GSList.@Returns: a copy of @list.<!-- ##### FUNCTION g_slist_reverse ##### --><para>Reverses a #GSList.</para>@list: a #GSList.@Returns: the start of the reversed #GSList.<!-- ##### FUNCTION g_slist_insert_sorted_with_data ##### --><para>Inserts a new element into the list, using the given comparison functionto determine its position.</para>@list: a #GSList.@data: the data for the new element.@func: the function to compare elements in the list. It should return anumber > 0 if the first parameter comes after the second parameter inthe sort order.@user_data: data to pass to comparison function.@Returns: the new start of the #GSList.@Since 2.10<!-- ##### FUNCTION g_slist_sort ##### --><para>Sorts a #GSList using the given comparison function.</para>@list: a #GSList.@compare_func: the comparison function used to sort the #GSList. This function is passed the data from 2 elements of the #GSList and should return 0 if they are equal, a negative value if the first element comes before the second, or a positive value if the first element comes after the second.@Returns: the start of the sorted #GSList.<!-- ##### FUNCTION g_slist_sort_with_data ##### --><para>Like g_slist_sort(), but the sort function accepts a user data argument.</para>@list: a #GSList@compare_func: comparison function.@user_data: data to pass to comparison function.@Returns: new head of the list.<!-- ##### FUNCTION g_slist_concat ##### --><para>Adds the second #GSList onto the end of the first #GSList.Note that the elements of the second #GSList are not copied.They are used directly.</para>@list1: a #GSList.@list2: the #GSList to add to the end of the first #GSList.@Returns: the start of the new #GSList.<!-- ##### FUNCTION g_slist_foreach ##### --><para>Calls a function for each element of a #GSList.</para>@list: a #GSList.@func: the function to call with each element's data.@user_data: user data to pass to the function.<!-- ##### FUNCTION g_slist_last ##### --><para>Gets the last element in a #GSList.</para>@list: a #GSList.@Returns: the last element in the #GSList, or %NULL if the #GSList has noelements.<!-- ##### MACRO g_slist_next ##### --><para>A convenience macro to gets the next element in a #GSList.</para>@slist: an element in a #GSList.@Returns: the next element, or %NULL if there are no more elements.<!-- ##### FUNCTION g_slist_nth ##### --><para>Gets the element at the given position in a #GSList.</para>@list: a #GSList.@n: the position of the element, counting from 0.@Returns: the element, or %NULL if the position is off the end of the #GSList.<!-- ##### FUNCTION g_slist_nth_data ##### --><para>Gets the data of the element at the given position.</para>@list: a #GSList.@n: the position of the element.@Returns: the element's data, or %NULL if the position is off the end of the#GSList.<!-- ##### FUNCTION g_slist_find ##### --><para>Finds the element in a #GSList which contains the given data.</para>@list: a #GSList.@data: the element data to find.@Returns: the found #GSList element, or %NULL if it is not found.<!-- ##### FUNCTION g_slist_find_custom ##### --><para>Finds an element in a #GSList, using a supplied function to find the desiredelement.It iterates over the list, calling the given function which should return 0when the desired element is found.The function takes two #gconstpointer arguments, the #GSList element's data asthe first argument and the given user data.</para>@list: a #GSList.@data: user data passed to the function.@func: the function to call for each element. It should return 0 when thedesired element is found.@Returns: the found #GSList element, or %NULL if it is not found.<!-- ##### FUNCTION g_slist_position ##### --><para>Gets the position of the given element in the #GSList (starting from 0).</para>@list: a #GSList.@llink: an element in the #GSList.@Returns: the position of the element in the #GSList, or -1 if the elementis not found.<!-- ##### FUNCTION g_slist_index ##### --><para>Gets the position of the element containing the given data (starting from 0).</para>@list: a #GSList.@data: the data to find.@Returns: the index of the element containing the data, or -1 if the datais not found.<!-- ##### FUNCTION g_slist_push_allocator ##### --><para>Sets the allocator to use to allocate #GSList elements.Use g_slist_pop_allocator() to restore the previous allocator.</para><para>Note that this function is not available if GLib has been compiledwith <option>--disable-mem-pools</option></para>@dummy: the #GAllocator to use when allocating #GSList elements.@Deprecated: 2.10: It does nothing, since #GSList has beenconverted to the <link linkend="glib-Memory-Slices">slice allocator</link><!-- ##### FUNCTION g_slist_pop_allocator ##### --><para>Restores the previous #GAllocator, used when allocating #GSList elements.</para><para>Note that this function is not available if GLib has been compiledwith <option>--disable-mem-pools</option></para>@Deprecated: 2.10: It does nothing, since #GSList has beenconverted to the <link linkend="glib-Memory-Slices">slice allocator</link>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
制服.丝袜.亚洲.中文.综合| 国产午夜亚洲精品羞羞网站| 久久久一区二区| 亚洲第一福利一区| 成人短视频下载| 久久久久97国产精华液好用吗| 中文久久乱码一区二区| 日本一区二区免费在线| 午夜精品在线视频一区| 风间由美一区二区三区在线观看 | 亚洲特黄一级片| 午夜精品在线看| www.爱久久.com| 欧美一级片在线| 亚洲精品伦理在线| 国产不卡在线播放| 日韩一区二区在线播放| 国产精品国产自产拍在线| 久久精品国产亚洲高清剧情介绍| 欧美偷拍一区二区| 成人免费在线视频| 国产成人综合亚洲91猫咪| 成人97人人超碰人人99| 日韩女优电影在线观看| 一区二区三国产精华液| 成人av在线影院| 欧美视频一区在线| 亚洲四区在线观看| 国产 日韩 欧美大片| 欧美v日韩v国产v| 亚洲电影一级片| 91视频在线看| 一区在线播放视频| 成人免费观看男女羞羞视频| 欧美色图片你懂的| 一区二区三区四区av| 成人在线综合网| 国产拍揄自揄精品视频麻豆| 亚洲成a人片在线观看中文| 欧美日韩精品久久久| 亚洲一区二区影院| 91精品国产黑色紧身裤美女| 久久综合综合久久综合| 制服丝袜中文字幕一区| 午夜精品福利一区二区蜜股av| 色狠狠色噜噜噜综合网| 亚洲蜜臀av乱码久久精品| 国内精品久久久久影院色| 亚洲男人的天堂av| 在线免费观看不卡av| 亚洲美女屁股眼交| 99精品桃花视频在线观看| 国产精品欧美久久久久无广告 | 欧美大肚乱孕交hd孕妇| 视频一区二区三区入口| 欧美高清你懂得| 中文字幕日本乱码精品影院| 欧美三级电影在线看| 久久99精品久久久久婷婷| 国产精品麻豆久久久| 欧美天堂一区二区三区| 婷婷亚洲久悠悠色悠在线播放| 5月丁香婷婷综合| 麻豆精品一区二区| 欧美韩国日本一区| 91在线视频免费观看| 亚洲成人一区二区| 欧美成人vps| 五月激情综合婷婷| 成人a级免费电影| 精品国产乱码久久久久久夜甘婷婷| 国产精品2024| 丝瓜av网站精品一区二区| 国产视频视频一区| 777色狠狠一区二区三区| 国产精品一区免费视频| 五月激情六月综合| 亚洲免费av网站| 久久久99免费| 欧美一区二区精品在线| 91在线精品一区二区三区| 麻豆成人免费电影| 亚洲精品国产成人久久av盗摄| 久久婷婷国产综合国色天香| 欧美伦理视频网站| 91免费国产视频网站| 国产一区啦啦啦在线观看| 亚洲一级电影视频| 国产精品久久久久aaaa| 日韩精品中文字幕一区| 欧美日韩中文字幕一区二区| 99国产精品国产精品毛片| 国产福利一区二区三区在线视频| 亚洲激情男女视频| 中文字幕中文字幕一区| 国产亚洲精品免费| 欧美mv日韩mv国产| 6080国产精品一区二区| 欧美日韩二区三区| 欧美在线观看你懂的| 91小视频免费观看| www.日韩在线| 成人美女视频在线看| 国产精品系列在线播放| 国产自产v一区二区三区c| 麻豆成人久久精品二区三区红 | 欧美mv日韩mv| 欧美一区三区四区| 欧美一区日本一区韩国一区| 欧美日韩免费观看一区二区三区 | 亚洲成人av免费| 亚洲影视在线观看| 亚洲午夜一区二区| 香蕉乱码成人久久天堂爱免费| 亚洲午夜电影在线观看| 亚洲一区二区欧美日韩| 亚洲一区二区三区四区在线| 亚洲444eee在线观看| 日韩极品在线观看| 麻豆一区二区在线| 国产乱一区二区| www.成人网.com| 91九色最新地址| 欧美日韩国产一级片| 欧美一区二区三区视频在线观看| 91精品国产综合久久香蕉的特点| 欧美一级片在线看| 久久老女人爱爱| 亚洲欧洲一区二区在线播放| 亚洲精品伦理在线| 日韩成人一区二区三区在线观看| 美女一区二区久久| 国产精品自拍av| 一本在线高清不卡dvd| 欧美日韩在线一区二区| 欧美一区在线视频| 久久久777精品电影网影网| 中日韩av电影| 午夜视频一区在线观看| 久久电影国产免费久久电影| 风流少妇一区二区| 在线观看91视频| 精品av久久707| 亚洲狠狠丁香婷婷综合久久久| 午夜精品一区二区三区三上悠亚| 精品一区二区在线播放| 91影视在线播放| 欧美mv日韩mv| 一区二区三区四区不卡在线| 美女在线视频一区| 91亚洲永久精品| 久久亚洲综合色一区二区三区| 中文字幕在线一区| 日韩av中文字幕一区二区| 国产91精品露脸国语对白| 欧美亚洲一区三区| 久久亚洲春色中文字幕久久久| 亚洲三级在线播放| 精品影视av免费| 欧美日韩精品福利| 中文字幕中文乱码欧美一区二区| 日韩成人午夜电影| 99re视频这里只有精品| 精品欧美一区二区久久| 一区二区三区在线免费视频| 久久aⅴ国产欧美74aaa| 在线视频你懂得一区二区三区| 欧美成人福利视频| 亚洲18色成人| 一本久久精品一区二区| 久久精品亚洲精品国产欧美| 日产精品久久久久久久性色| 91麻豆.com| 成人欧美一区二区三区小说| 国产精品资源网| 日韩亚洲电影在线| 性久久久久久久久久久久| 97久久久精品综合88久久| 久久免费的精品国产v∧| 日韩和的一区二区| 在线日韩国产精品| 国产精品午夜在线观看| 国精品**一区二区三区在线蜜桃| 欧美精选午夜久久久乱码6080| 伊人夜夜躁av伊人久久| 成人黄色av网站在线| 欧美videos大乳护士334| 日韩综合小视频| 欧美日韩免费视频| 亚洲成av人在线观看| 精品视频一区三区九区| 亚洲九九爱视频| 91免费版在线看| 亚洲精品日韩综合观看成人91| 成人av网址在线| 中文字幕在线不卡国产视频| 成人黄页在线观看| 一区在线观看免费| 色哟哟一区二区| 亚洲一级二级在线|